X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/0494b8d9b9bb03ab6c22b34dae81261e3cd7e3e6..7a654f8d43fdb43d78b63d90528bed6e86b608cc:/docs/output/Ext.KeyMap.html diff --git a/docs/output/Ext.KeyMap.html b/docs/output/Ext.KeyMap.html deleted file mode 100644 index a6a20bcb..00000000 --- a/docs/output/Ext.KeyMap.html +++ /dev/null @@ -1,83 +0,0 @@ -
Properties Methods Events Direct Link

Class Ext.KeyMap

Package:Ext
Defined In:KeyMap.js
Class:KeyMap
Extends:Object
Handles mapping keys to actions for an element. One key map can be used for multiple actions. -The constructor accepts the same config object as defined by addBinding. -If you bind a callback function to a KeyMap, anytime the KeyMap handles an expected key -combination it will call the function with this signature (if the match is a multi-key -combination the callback will still be called only once): (String key, Ext.EventObject e) -A KeyMap can also handle a string representation of keys.
-Usage: -
// map one key by key code
-var map = new Ext.KeyMap("my-element", {
-    key: 13, // or Ext.EventObject.ENTER
-    fn: myHandler,
-    scope: myObject
-});
-
-// map multiple keys to one action by string
-var map = new Ext.KeyMap("my-element", {
-    key: "a\r\n\t",
-    fn: myHandler,
-    scope: myObject
-});
-
-// map multiple keys to multiple actions by strings and array of codes
-var map = new Ext.KeyMap("my-element", [
-    {
-        key: [10,13],
-        fn: function(){ alert("Return was pressed"); }
-    }, {
-        key: "abc",
-        fn: function(){ alert('a, b or c was pressed'); }
-    }, {
-        key: "\t",
-        ctrl:true,
-        shift:true,
-        fn: function(){ alert('Control + shift + tab was pressed.'); }
-    }
-]);
-Note: A KeyMap starts enabled

Public Properties

PropertyDefined By

Public Methods

MethodDefined By

Public Events

This class has no public events.
\ No newline at end of file