/* 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\nThe 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\nvar 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\nThe 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')
\nDefaults to: "stopEvent"
True to disable this KeyNav instance (defaults to false)
\nDefaults 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.
\nDefaults to: false
Destroy this KeyNav (this is the same as calling disable).
\nConvenience function for setting disabled/enabled by boolean.
\n