Skip to content
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

Make OpenLayers keyboard navigation work #384

Merged
merged 1 commit into from
Apr 25, 2024

Conversation

chrismayer
Copy link
Collaborator

Adds tabIndex attribute to the map's container, so it gets focusable. Otherwise the OL keyboard navigation won't work, see keyboardEventTarget in https://openlayers.org/en/latest/apidoc/module-ol_Map.html

Adds tabIndex attribute to the map's container, so
it gets focusable. Otherwise the OL keyboard
navigation won't work, see 'keyboardEventTarget'
in https://openlayers.org/en/latest/apidoc/module-ol_Map.html
Copy link
Collaborator

@sronveaux sronveaux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This greatly improves accessibility in Wegue. Too bad this is not better documented in OpenLayers, you were lucky to come across this one ;-)

It works flawlessly and LGTM. Ready to merge !

@chrismayer
Copy link
Collaborator Author

Thanks again for your review @sronveaux 👍

@chrismayer chrismayer merged commit d211b88 into wegue-oss:master Apr 25, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants