Class Ext.KeyNav
Package: | Ext |
Class: | KeyNav |
Extends: | Object |
Defined In: | KeyNav.js |
Provides a convenient wrapper for normalized keyboard navigation. KeyNav allows you to bind
navigation keys to function calls that will get called when the keys are pressed.
Usage:
var nav = new Ext.KeyNav("my-element", {
"left" : function(e){
this.moveLeft(e.ctrlKey);
},
"right" : function(e){
this.moveRight(e.ctrlKey);
},
"enter" : function(e){
this.save();
},
scope : this
});
Properties
-
Methods
-
Events
Public Properties
This class has no public properties.
Public Methods
|
KeyNav(String/HTMLElement/Ext.Element el , Object config ) |
KeyNav |
|
|
disable() : void |
KeyNav |
Disable this KeyNav |
|
enable() : void |
KeyNav |
Enable this KeyNav |
Public Events
This class has no public events.
Constructor Details
KeyNav
public function KeyNav(String/HTMLElement/Ext.Element el
, Object config
)
Parameters:
el
: String/HTMLElement/Ext.ElementThe element to bind to
config
: ObjectThe config
Method Details
disable
public function disable()
This method is defined by KeyNav.
enable
public function enable()
This method is defined by KeyNav.