/* This file is part of Ext JS 3.4 Copyright (c) 2011-2013 Sencha Inc Contact: http://www.sencha.com/contact GNU General Public License Usage This file may be used under the terms of the GNU General Public License version 3.0 as published by the Free Software Foundation and appearing in the file LICENSE included in the packaging of this file. Please review the following information to ensure the GNU General Public License version 3.0 requirements will be met: http://www.gnu.org/copyleft/gpl.html. If you are unsure which license is appropriate for your use, please contact the sales department at http://www.sencha.com/contact. Build date: 2013-04-03 15:07:25 */ Ext.data.JsonP.Ext_KeyNav({"alternateClassNames":[],"aliases":{},"enum":null,"parentMixins":[],"tagname":"class","subclasses":[],"extends":null,"uses":[],"html":"

Files

Provides a convenient wrapper for normalized keyboard navigation. KeyNav allows you to bind\nnavigation keys to function calls that will get called when the keys are pressed, providing an easy\nway to implement custom navigation schemes for any UI component.

\n\n\n

The following are all of the possible keys that can be implemented: enter, left, right, up, down, tab, esc,\npageUp, pageDown, del, home, end. Usage:

\n\n\n\n\n
var nav = new Ext.KeyNav(\"my-element\", {\n    \"left\" : function(e){\n        this.moveLeft(e.ctrlKey);\n    },\n    \"right\" : function(e){\n        this.moveRight(e.ctrlKey);\n    },\n    \"enter\" : function(e){\n        this.save();\n    },\n    scope : this\n});\n
\n\n
Defined By

Config options

The method to call on the Ext.EventObject after this KeyNav intercepts a key. ...

The method to call on the Ext.EventObject after this KeyNav intercepts a key. Valid values are\nExt.EventObject.stopEvent, Ext.EventObject.preventDefault and\nExt.EventObject.stopPropagation (defaults to 'stopEvent')

\n

Defaults to: "stopEvent"

Ext.KeyNav
view source
: Boolean
True to disable this KeyNav instance (defaults to false) ...

True to disable this KeyNav instance (defaults to false)

\n

Defaults to: false

Ext.KeyNav
view source
: Boolean
Handle the keydown event instead of keypress (defaults to false). ...

Handle the keydown event instead of keypress (defaults to false). KeyNav automatically does this for IE since\nIE does not propagate special keys on keypress, but setting this to true will force other browsers to also\nhandle keydown instead of keypress.

\n

Defaults to: false

Defined By

Methods

Ext.KeyNav
view source
new( el, config ) : Ext.KeyNav
...
\n

Parameters

  • el : Mixed

    The element to bind to

    \n
  • config : Object

    The config

    \n

Returns

Ext.KeyNav
view source
( )
Destroy this KeyNav (this is the same as calling disable). ...

Destroy this KeyNav (this is the same as calling disable).

\n
Ext.KeyNav
view source
( )
Disable this KeyNav ...

Disable this KeyNav

\n
Ext.KeyNav
view source
( )
Enable this KeyNav ...

Enable this KeyNav

\n
Ext.KeyNav
view source
( disabled )
Convenience function for setting disabled/enabled by boolean. ...

Convenience function for setting disabled/enabled by boolean.

\n

Parameters

  • disabled : Boolean
    \n
","superclasses":[],"meta":{},"requires":[],"html_meta":{},"statics":{"property":[],"cfg":[],"css_var":[],"method":[],"event":[],"css_mixin":[]},"files":[{"href":"KeyNav.html#Ext-KeyNav","filename":"KeyNav.js"}],"linenr":1,"members":{"property":[],"cfg":[{"tagname":"cfg","owner":"Ext.KeyNav","meta":{},"name":"defaultEventAction","id":"cfg-defaultEventAction"},{"tagname":"cfg","owner":"Ext.KeyNav","meta":{},"name":"disabled","id":"cfg-disabled"},{"tagname":"cfg","owner":"Ext.KeyNav","meta":{},"name":"forceKeyDown","id":"cfg-forceKeyDown"}],"css_var":[],"method":[{"tagname":"method","owner":"Ext.KeyNav","meta":{},"name":"constructor","id":"method-constructor"},{"tagname":"method","owner":"Ext.KeyNav","meta":{},"name":"destroy","id":"method-destroy"},{"tagname":"method","owner":"Ext.KeyNav","meta":{},"name":"disable","id":"method-disable"},{"tagname":"method","owner":"Ext.KeyNav","meta":{},"name":"enable","id":"method-enable"},{"tagname":"method","owner":"Ext.KeyNav","meta":{},"name":"setDisabled","id":"method-setDisabled"}],"event":[],"css_mixin":[]},"inheritable":null,"private":null,"component":false,"name":"Ext.KeyNav","singleton":false,"override":null,"inheritdoc":null,"id":"class-Ext.KeyNav","mixins":[],"mixedInto":[]});