I have a web page with a map and search field. Something like Derek's "beer's finder" When I type a search request I somethimes use arrows to fix something. But if mouse is over the map, then I can't use arrows for text editing because map catches them. I tried to fix it the following way (without result):

    dojo.connect(this._currentmap, "onKeyDown", function(ev) {
        if (ev.keyCode >= 37 && ev.keyCode <= 40) { //if arrrow

Do you know how I can fix this problem?


1 Answer 1


You could try calling map.disableKeyboardNavigation() when the search field gets focus, and enableKeyboardNavigation() on blur.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.