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
dojo.stopEvent(ev);
}
});
Do you know how I can fix this problem?