A handler for keyboard events. Create a new instance with the ALKMaps.Handler.Keyboard constructor.
ALKMaps. | A handler for keyboard events. |
Constants | |
KEY_EVENTS | keydown, keypress, keyup |
Properties | |
eventListener | {Function} |
observeElement | {DOMElement|String} The DOM element on which we listen for key events. |
Constructor | |
ALKMaps. | Returns a new keyboard handler. |
Functions | |
destroy | |
activate | |
deactivate | |
handleKeyEvent |
Returns a new keyboard handler.
control | {ALKMaps.Control} The control that is making use of this handler. If a handler is being used without a control, the handlers setMap method must be overridden to deal properly with the map. |
callbacks | {Object} An object containing a single function to be called when the drag operation is finished. The callback should expect to receive a single argument, the pixel location of the event. Callbacks for ‘keydown’, ‘keypress’, and ‘keyup’ are supported. |
options | {Object} Optional object whose properties will be set on the handler. |
destroy: function()
activate: function()
deactivate: function()
handleKeyEvent: function ( evt )