X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/d41dc04ad17d1d9125fb2cf72db2b4782dbe3a8c..10a866c12701c0a0afd0ac85dcdcf32a421514ac:/docs/output/Ext.KeyMap.html?ds=sidebyside diff --git a/docs/output/Ext.KeyMap.html b/docs/output/Ext.KeyMap.html index b1f0f54b..330605c8 100644 --- a/docs/output/Ext.KeyMap.html +++ b/docs/output/Ext.KeyMap.html @@ -1,237 +1,83 @@ -
Package: | Ext |
Defined In: | KeyMap.js |
Class: | KeyMap |
Extends: | Object |
Package: | Ext |
Defined In: | KeyMap.js |
Class: | KeyMap |
Extends: | Object |
// 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 Method | -Defined By | -||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
- |
-
- KeyMap( Mixed el , Object config , [String eventName ] )
-
-
-
-
-
- Parameters:
-
-
|
- KeyMap | -|||||||||||||||||||||||||||
- |
-
- addBinding( Object/Array config ) : void
-
\ No newline at end of file
+stopEvent Boolean True to stop the event from bubbling and prevent the default browser action if the key was handled by the KeyMap (defaults to false)
+
+Usage:
+Add a new binding to this KeyMap. The following config object properties are supported:
-Property Type ...
-
- Add a new binding to this KeyMap. The following config object properties are supported:
- Property Type Description ++Note: A KeyMap starts enabled Public Properties
Public Methods
Public Events-This class has no public events.
-
Parameters:
| KeyMap | |||||||||||||||||||||||||||
disable()
+ :
+ void Disable this KeyMap Disable this KeyMap Parameters:
| KeyMap | ||||||||||||||||||||||||||||
enable()
+ :
+ void Enables this KeyMap Enables this KeyMap Parameters:
| KeyMap | ||||||||||||||||||||||||||||
isEnabled()
+ :
+ Boolean Returns true if this KeyMap is enabled Returns true if this KeyMap is enabled Parameters:
| KeyMap | ||||||||||||||||||||||||||||
on( Number/Array/Object key , Function fn , [Object scope ] )
+ :
+ voidShorthand for adding a single key listener Shorthand for adding a single key listener Parameters:
| KeyMap | ||||||||||||||||||||||||||||
setDisabled( Boolean disabled )
+ :
+ voidConvenience function for setting disabled/enabled by boolean. Convenience function for setting disabled/enabled by boolean. Parameters:
| KeyMap |