OpenLayers. handler. Keyboard

A handler for keyboard events.  Create a new instance with the OpenLayers.Handler.Keyboard constructor.

Inherits from

Summary
OpenLayers. handler. KeyboardA handler for keyboard events.
Constants
KEY_EVENTSkeydown, keypress, keyup
Constructor
OpenLayers. Handler. KeyboardReturns a new keyboard handler.

Constants

KEY_EVENTS

keydown, keypress, keyup

Constructor

OpenLayers. Handler. Keyboard

Returns a new keyboard handler.

Parameters

control{OpenLayers.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 recieve 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.
Returns a new keyboard handler.
Base class to construct a higher-level handler for event sequences.
Controls affect the display or behavior of the map.
Close