Class type Ext_util_KeyMap.t


class type t = object .. end
Inherits
method addBinding : 'a. 'a Js.t -> unit Js.meth

Add a new binding to this KeyMap.

Usage:

// Create a KeyMap
var map = new Ext.util.KeyMap(document, {
    key: Ext.EventObject.ENTER,
    fn: handleKey,
    scope: this
});

//Add a new binding to the existing KeyMap later
map.addBinding({
    key: 'abc',
    shift: true,
    fn: handleKey,
    scope: this
});

Parameters:


method destroy : bool Js.t -> unit Js.meth

Destroys the KeyMap instance and removes all handlers.

Parameters:


method disable : unit Js.meth

Disable this KeyMap


method enable : unit Js.meth

Enables this KeyMap


method isEnabled : bool Js.t Js.meth

Returns true if this KeyMap is enabled


method on : 'b 'c 'd. 'b Js.t -> 'c Js.callback -> 'd Js.t Js.optdef -> unit Js.meth

Shorthand for adding a single key listener.

Parameters:


method removeBinding : 'e. 'e Js.t -> unit Js.meth

Remove a binding from this KeyMap.

Parameters:


method setDisabled : bool Js.t -> unit Js.meth

Convenience function for setting disabled/enabled by boolean.

Parameters:


method un : 'f 'g 'h. 'f Js.t -> 'g Js.callback -> 'h Js.t Js.optdef -> unit Js.meth

Shorthand for removing a single key listener.

Parameters: