-
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
Layer context menu is not focused / announced when Shift-F10 is pressed with focus on layer item #578
Comments
Just noting that this is also mentioned in #247 (comment):
|
Thank you for your attention to detail, @Malvoz |
@ahmadayubi / @prushforth If I focus on the layermenu and tab out of it, the focus is no longer on the map (since it's last in the DOM). Side note: this is also the case for the contextmenu. If I add a tabindex="-1" to the layermenu, the focus then shifts to the entire map-region again. I would like the focus to be on the same layer on the layer control, any recommendations on any workarounds? Screen.Recording.2021-11-18.at.2.31.20.PM.mov |
Yes I would like it to go back to the previous menu item too, or possibly the next, but certainly not out of the map again! As mentioned on gitter, let's see if inserting into the DOM right before or after the element that gets right-clicked may work. |
@Anshpreet8 Something similar happened with feature pop up tabbing. The solution in that case was to handle the tab (keyboard) event and force focus using event handlers. It's not a trivial task as there are multiple cases you have to account for, including SHIFT+TAB. |
Steps to reproduce
Load this page: https://maps4html.org/experiments/styling/alternate-styles/
Press Tab 6 times - focus should be on layer control
Press Enter - layer control open - focus should shift to first layer entry (imo), but does not
Press Tab - focus now on checkbox of first layer
Press Shift-F10 (on windows) - layer context menu appears, focus should be on first menu item but is not
Press Tab - focus should shift to second context menu item, but actually moves to next interactive element in layer control entry (X usually) Context menu remains visible but inaccessible, except through shortcut keys (which are not announced).
The text was updated successfully, but these errors were encountered: