-
Notifications
You must be signed in to change notification settings - Fork 16
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
Replace tab-driven feature navigation with arrow keys #678
Comments
I suggest to use a simple replacement of left-arrow and up-arrow => shift-tab, while down-arrow and right-arrow => tab. An open question, perhaps for @Malvoz, is how / if to provide audible feedback to screen reader users when the last feature is reached. Similarly when shift-tabbing backwards, would be ideal to give audible feedback for when first feature of sequence is reached. |
At the moment the linked PR makes it so that the user has to tab in to the features, navigate the features using arrow keys and tab again if they want to reach the controls. Navigating through the features with only arrow keys would "trap them" at the last feature. |
It's working pretty well. A distinctive sound would be good, but next best would be a localized announcement like "last feature, hit tab to proceed/ shift-tab to go back". I note that Google Maps API just goes back to the first feature. |
We're going to have to figure out how to integrate this with the feature index as the next tab stop. |
I think either: For up and left: If focus is on the first feature, moves focus to the last feature. similar to the keyboard support for the APG menubar. Or similar to Grids: don't move the focus. One concern with implementing this: how would screen reader users know they can use arrow keys to navigate features? I think that's where some of the widget roles related to both (e.g.) menubars and grids come into play. But the patterns tend to expect certain roles on the focusable items (due to ARIA requirements) where we'd perhaps want Edit: this concern can be solved later, just wanted to note it. |
An observation from a quick look at that: page down and page up are used as "accelerators", moving up/down (by analogy forward/backward) some predefined number greater than 1 of table rows, and Ctrl+Home Ctrl+End move to the first/last rows. Not to add work to this PR, but these might also be useful for features. Similarly, for later / another PR. Edit: I see, as you suggest, that the focusgroup proposal may be how these aspects are implemented in the future. |
For reference, markers in Google Maps are navigated using arrow keys (though they fail to use appropriate roles for elements per the ARIA design patterns such that users can expect them to be navigated using arrow keys. I may file a bug when I have time to).
Originally posted by @Malvoz in #535 (comment)
The text was updated successfully, but these errors were encountered: