Properties Methods Events Config Options Direct Link

Class Ext.KeyNav

Package:Ext
Defined In:KeyNav.js
Class:KeyNav
Extends:Object

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, providing an easy way to implement custom navigation schemes for any UI component.

The following are all of the possible keys that can be implemented: enter, left, right, up, down, tab, esc, pageUp, pageDown, del, home, end. 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
});

Config Options

Config Options Defined By
  disabled : Boolean
True to disable this KeyNav instance (defaults to false)
KeyNav

Public Properties

This class has no public properties.

Public Methods

Method Defined By

Public Events

This class has no public events.