interface HandlerOptions {
    control: Control;
    keyMask: number;
}

Hierarchy (View Summary)

Properties

Properties

control: Control

APIProperty: control {<OpenLayers.Control>}. The control that initialized this handler. The control is assumed to have a valid map property - that map is used in the handler's own setMap method.

keyMask: number

APIProperty: keyMask {Integer} Use bitwise operators and one or more of the OpenLayers.Handler constants to construct a keyMask. The keyMask is used by . If the keyMask matches the combination of keys down on an event, checkModifiers returns true.

Example: (code) // handler only responds if the Shift key is down handler.keyMask = OpenLayers.Handler.MOD_SHIFT;

// handler only responds if Ctrl-Shift is down
handler.keyMask = OpenLayers.Handler.MOD_SHIFT |
                  OpenLayers.Handler.MOD_CTRL;

(end)