diff --git a/lib/OpenLayers/Control/KeyboardDefaults.js b/lib/OpenLayers/Control/KeyboardDefaults.js index b973b3d6bf..8b1d4e17a3 100644 --- a/lib/OpenLayers/Control/KeyboardDefaults.js +++ b/lib/OpenLayers/Control/KeyboardDefaults.js @@ -75,6 +75,14 @@ OpenLayers.Control.KeyboardDefaults = OpenLayers.Class(OpenLayers.Control, { */ defaultKeyPress: function (evt) { var size, handled = true; + + if((typeof evt.target) != 'undefined' && + (evt.target.tagName == 'INPUT' || + evt.target.tagName == 'TEXTAREA' || + evt.target.tagName == 'SELECT')) { + return; + } + switch(evt.keyCode) { case OpenLayers.Event.KEY_LEFT: this.map.pan(-this.slideFactor, 0);