The KeyboardDefaults control adds panning and zooming functions, controlled with the keyboard. By default arrow keys pan, +/- keys zoom & Page Up/Page Down/Home/End scroll by three quarters of a page.
This control has no visible appearance.
OpenLayers. | The KeyboardDefaults control adds panning and zooming functions, controlled with the keyboard. |
Properties | |
slideFactor | Pixels to slide by. |
Constructor | |
OpenLayers. | |
Functions | |
destroy | |
draw | Create handler. |
defaultKeyPress | When handling the key event, we only use evt.keyCode. |
defaultKeyPress: function ( evt )
When handling the key event, we only use evt.keyCode. This holds some drawbacks, though we get around them below. When interpretting the keycodes below (including the comments associated with them), consult the URL below. For instance, the Safari browser returns “IE keycodes”, and so is supported by any keycode labeled “IE”.
http://unixpapa.com/js/key.html
code | {Integer} |
destroy: function()
Create handler.
draw: function()
When handling the key event, we only use evt.keyCode.
defaultKeyPress: function ( evt )