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

add calls to map.disable/enableKeyboardNavigation() so people can't pan ... #4

Merged
merged 1 commit into from Sep 4, 2014

Conversation

jgravois
Copy link
Contributor

@jgravois jgravois commented Sep 4, 2014

added calls to map.disable/enableKeyboardNavigation()

see:
https://geonet.esri.com/message/402040#402040

…an the map with arrow keys (when mouse is positioned over the map while widget has focus)
@jgravois
Copy link
Contributor Author

jgravois commented Sep 4, 2014

working sample can be found here:
https://dl.dropboxusercontent.com/u/59331579/js/geocoder-mapnavigation/index.html

test keyboard navigation (with arrow keys)
click on widget to give focus, then move mouse back to map
notice that keyboard navigation is now disabled

driskull added a commit that referenced this pull request Sep 4, 2014
add calls to map.disable/enableKeyboardNavigation() so people can't pan ...
@driskull driskull merged commit 3b6f6c3 into Esri:development Sep 4, 2014
@jgravois jgravois deleted the disable-map-navigation branch September 4, 2014 16:56
@driskull
Copy link
Member

driskull commented Sep 4, 2014

cool. I wrapped it in an if statement for the map though incase its not defined.

@jgravois
Copy link
Contributor Author

jgravois commented Sep 4, 2014

🤘

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.

None yet

2 participants