Add new script to report accelerator key of currently focused object#13960
Conversation
Co-authored-by: Sean Budd <seanbudd123@gmail.com>
Co-authored-by: Sean Budd <seanbudd123@gmail.com>
|
@codeofdusk I'm not sure - it would be good to get an answer on this even if it's a separate issue / discussion / PR |
…p) since the accelerator appears as an underlined character visually.
|
@seanbudd It appears the issues I was having with MSAA apps were caused by me binding the script to a command that caused the menus to close. Setting a default gesture (based on the "current character" commands) seems to resolve the issue. |
|
PR now ready for review/merge. |
Co-authored-by: Sean Budd <seanbudd123@gmail.com>
|
I am a bit concerned by the use of Numpad for the default gesture. Could we find another key combination or keep it unbound by default? |
@CyrilleB79 Similarity to review cursor keys is intended:
So this is the "current character" command with modifiers. |
I have understood that you want to find a similarity with a character command since accelerator key is an underlined character. Anyway, I have expressed my opinion now. But if I am the only one to think this way, just go forward with this PR as is; that's not so important. |
See test results for failed build of commit 87b7c54570 |
See test results for failed build of commit 0e65abd4a1 |
|
@seanbudd Failure seems unrelated. |
Qchristensen
left a comment
There was a problem hiding this comment.
Great work, will be well appreciated.
Link to issue number:
None (reported privately by @DHowett via @carlos-zamora).
Summary of the issue:
There is no way to simply obtain the accelerator key of the currently focused object without reading its entire description.
Description of how this pull request fixes the issue:
Adds a new script to report the accelerator key. By default, it is bound to Shift+numpad 2 (desktop) and Ctrl+Shift+NVDA+. (laptop). As a mnemonic, accelerator keys are (or at least used to be) visually displayed by an underlined character.
Testing strategy:
Tested Windows 11 Notepad (UIA), NVDA menus (MSAA), Google Chrome (MSAA), and Foobar 2000 (MSAA).
Known issues with pull request:
None known.
Change log entries:
== New Features ==
Code Review Checklist: