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

fix: enable keyboard navigation on load #1892

Merged
merged 1 commit into from
Nov 9, 2023
Merged

Conversation

tonnyandersson
Copy link
Collaborator

Fixes #667.

Quick and dirty. Doesn't work with iframe embedded maps, though.

@Grammostola
Copy link
Contributor

Appears to work a treat. (plus minus to zoom in out, arrows to pan). Very nice. Lgtm

@tonnyandersson tonnyandersson merged commit a5bcb1e into master Nov 9, 2023
4 checks passed
@tonnyandersson tonnyandersson deleted the keyboard-navigation branch November 9, 2023 08:27
@jokd
Copy link
Contributor

jokd commented Nov 9, 2023

If for some reason you want to override this it can be done by setting keyboardEventTarget when initializing Origo:
var origo = Origo('index.json', { keyboardEventTarget: undefined });

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.

Keyboard navigation
3 participants