Esri / arcgis-dijit-geocoder-js

JavaScript auto-complete widget for locating places.
Apache License 2.0
27 stars 19 forks source link

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

Closed jgravois closed 10 years ago

jgravois commented 10 years ago

added calls to map.disable/enableKeyboardNavigation()

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

jgravois commented 10 years ago

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 commented 10 years ago

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

jgravois commented 10 years ago

:metal: