-<div xmlns:ext="http://www.extjs.com" class="body-wrap"><h1>Class <a href="source/KeyMap.html#cls-Ext.KeyMap">Ext.KeyMap</a></h1><table cellspacing="0"><tr><td class="label">Package:</td><td class="hd-info">Ext</td></tr><tr><td class="label">Defined In:</td><td class="hd-info">KeyMap.js</td></tr><tr><td class="label">Class:</td><td class="hd-info"><a href="source/KeyMap.html#cls-Ext.KeyMap">KeyMap</a></td></tr><tr><td class="label">Extends:</td><td class="hd-info">Object</td></tr></table><div class="description">Handles mapping keys to actions for an element. One key map can be used for multiple actions.\r
-The constructor accepts the same config object as defined by <a href="output/Ext.KeyMap.html#Ext.KeyMap-addBinding" ext:member="addBinding" ext:cls="Ext.KeyMap">addBinding</a>.\r
-If you bind a callback function to a KeyMap, anytime the KeyMap handles an expected key\r
-combination it will call the function with this signature (if the match is a multi-key\r
-combination the callback will still be called only once): (String key, Ext.EventObject e)\r
-A KeyMap can also handle a string representation of keys.<br />\r
-Usage:\r
- <pre><code><i>// map one key by key code\r</i>
-<b>var</b> map = <b>new</b> Ext.KeyMap(<em>"my-element"</em>, {\r
- key: 13, <i>// or Ext.EventObject.ENTER\r</i>
- fn: myHandler,\r
- scope: myObject\r
-});\r
-\r
-<i>// map multiple keys to one action by string\r</i>
-<b>var</b> map = <b>new</b> Ext.KeyMap(<em>"my-element"</em>, {\r
- key: <em>"a\r\n\t"</em>,\r
- fn: myHandler,\r
- scope: myObject\r
-});\r
-\r
-<i>// map multiple keys to multiple actions by strings and array of codes\r</i>
-<b>var</b> map = <b>new</b> Ext.KeyMap(<em>"my-element"</em>, [\r
- {\r
- key: [10,13],\r
- fn: <b>function</b>(){ alert(<em>"Return was pressed"</em>); }\r
- }, {\r
- key: <em>"abc"</em>,\r
- fn: <b>function</b>(){ alert(<em>'a, b or c was pressed'</em>); }\r
- }, {\r
- key: <em>"\t"</em>,\r
- ctrl:true,\r
- shift:true,\r
- fn: <b>function</b>(){ alert(<em>'Control + shift + tab was pressed.'</em>); }\r
- }\r
-]);</code></pre>\r
-<b>Note: A KeyMap starts enabled</b></div><div class="hr"></div><a id="Ext.KeyMap-props"></a><h2>Public Properties</h2><table cellspacing="0" class="member-table"><tbody><tr><th colspan="2" class="sig-header">Property</th><th class="msource-header">Defined By</th></tr><tr class="property-row expandable "><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.KeyMap-stopEvent"></a><b><a href="source/KeyMap.html#prop-Ext.KeyMap-stopEvent">stopEvent</a></b> : Boolean<div class="mdesc"><div class="short">True to stop the event from bubbling and prevent the default browser action if the
-key was handled by the KeyMap (de...</div><div class="long">True to stop the event from bubbling and prevent the default browser action if the\r
+<div class="body-wrap" xmlns:ext="http://www.extjs.com"><div class="top-tools"><a class="inner-link" href="#Ext.KeyMap-props"><img src="resources/images/default/s.gif" class="item-icon icon-prop">Properties</a> <a class="inner-link" href="#Ext.KeyMap-methods"><img src="resources/images/default/s.gif" class="item-icon icon-method">Methods</a> <a class="inner-link" href="#Ext.KeyMap-events"><img src="resources/images/default/s.gif" class="item-icon icon-event">Events</a> <a class="bookmark" href="../docs/?class=Ext.KeyMap"><img src="resources/images/default/s.gif" class="item-icon icon-fav">Direct Link</a> </div><h1>Class <a href="source/KeyMap.html#cls-Ext.KeyMap">Ext.KeyMap</a></h1><table cellspacing="0"><tr><td class="label">Package:</td><td class="hd-info">Ext</td></tr><tr><td class="label">Defined In:</td><td class="hd-info"><a href="source/KeyMap.html#cls-Ext.KeyMap">KeyMap.js</a></td></tr><tr><td class="label">Class:</td><td class="hd-info"><a href="source/KeyMap.html#cls-Ext.KeyMap">KeyMap</a></td></tr><tr><td class="label">Extends:</td><td class="hd-info">Object</td></tr></table><div class="description">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 <a href="output/Ext.KeyMap.html#Ext.KeyMap-addBinding" ext:member="addBinding" ext:cls="Ext.KeyMap">addBinding</a>.
+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.<br />
+Usage:
+ <pre><code><i>// map one key by key code</i>
+<b>var</b> map = <b>new</b> Ext.KeyMap(<em>"my-element"</em>, {
+ key: 13, <i>// or Ext.EventObject.ENTER</i>
+ fn: myHandler,
+ scope: myObject
+});
+
+<i>// map multiple keys to one action by string</i>
+<b>var</b> map = <b>new</b> Ext.KeyMap(<em>"my-element"</em>, {
+ key: <em>"a\r\n\t"</em>,
+ fn: myHandler,
+ scope: myObject
+});
+
+<i>// map multiple keys to multiple actions by strings and array of codes</i>
+<b>var</b> map = <b>new</b> Ext.KeyMap(<em>"my-element"</em>, [
+ {
+ key: [10,13],
+ fn: <b>function</b>(){ alert(<em>"Return was pressed"</em>); }
+ }, {
+ key: <em>"abc"</em>,
+ fn: <b>function</b>(){ alert(<em>'a, b or c was pressed'</em>); }
+ }, {
+ key: <em>"\t"</em>,
+ ctrl:true,
+ shift:true,
+ fn: <b>function</b>(){ alert(<em>'Control + shift + tab was pressed.'</em>); }
+ }
+]);</code></pre>
+<b>Note: A KeyMap starts enabled</b></div><div class="hr"></div><a id="Ext.KeyMap-props"></a><h2>Public Properties</h2><table cellspacing="0" class="member-table"><tbody><tr><th colspan="2" class="sig-header">Property</th><th class="msource-header">Defined By</th></tr><tr class="property-row expandable "><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.KeyMap-stopEvent"></a><b><a href="source/KeyMap.html#prop-Ext.KeyMap-stopEvent">stopEvent</a></b> : Boolean<div class="mdesc"><div class="short">True to stop the event from bubbling and prevent the default browser action if the
+key was handled by the KeyMap (def...</div><div class="long">True to stop the event from bubbling and prevent the default browser action if the