-
Notifications
You must be signed in to change notification settings - Fork 747
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reader: Annotations colors aren't accessible via keyboard #4681
Comments
Hm, yeah. It is seemingly not possible to move into the context menu via keyboard at all ... It's strange because there were some issues with the options from the context menu (e.g. Edit Page Number) that were covered by the VPAT review and that we fixed. But issue of navigating the context menu to get to those options wasn't brought up. And it is not a recent issue as I never updated the stable version so I was on |
Another strange behavior I noticed while working on this to record: annotations can become impossible to select via keyboard if the context menu is closed by clicking outside of it as opposed to clicking Escape.
|
- add tabstop to contextMenu, so navigation between buttons within it is handled by focusManager - when context menu is opened, focus the first button from contextMenu so that the next keypress interacts with menu items - when Escape keypress is being handled and contextmenu is open, just call reader.closeContextMenu to close it and let focus go back to previously focused element. - add keydown listener to context-menu to navigate it by typing characters on the keyboard. After something is typed, find buttons with text that begins with the input. If there is only one match, it is clicked. If there are multiple, the first one is focused. The input counter is reset after 3 seconds of not typing. Fixes: zotero/zotero#4681
- add tabstop to contextMenu, so navigation between buttons within it is handled by focusManager - when context menu is opened, focus the first button from contextMenu so that the next keypress interacts with menu items - when Escape keypress is being handled and contextmenu is open, just call reader.closeContextMenu to close it and let focus go back to previously focused element. - add keydown listener to context-menu to navigate it by typing characters on the keyboard. After something is typed, find buttons with text that begins with the input. If there is only one match, it is clicked. If there are multiple, the first one is focused. The input counter is reset after 3 seconds of not typing. Fixes: zotero/zotero#4681
https://forums.zotero.org/discussion/117800/zotero-7-suggestion-bring-back-toggling-context-color-menu-options-via-keyboard
Both typing and arrow keys
The text was updated successfully, but these errors were encountered: