[OpenLayers-Users] how to restrict keyboard default controls
BMcBride
bmcbride at chacompanies.com
Tue Jun 15 09:21:36 EDT 2010
Imran,
You can set a global variable for the keyboard controls and
activate/deactivate as needed. Here's what I do for input fields using
onfocus and onblur:
In your map javascript:
var keyboardnav;
keyboardnav = new OpenLayers.Control.KeyboardDefaults();
map.addControl(keyboardnav);
In your html form:
<input type="text" id="myinput" onfocus="keyboardnav.deactivate();"
onblur="keyboardnav.activate();">
-----
Bryan R. McBride, GISP
http://www.bryanmcbride.com bryanmcbride.com
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/how-to-restrict-keyboard-default-controls-tp5181806p5181881.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
More information about the Users
mailing list