Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Ext.KeyMap usage example
var map = new Ext.KeyMap(document, {
key: 65,
fn: myHandler,
scope: myObject
});
//you can add another key-handler binding
map.addBinding({
key : "bcd",
ctrl : true,
fn : myOtherHandler,
scope : myOtherObject
});
var map = new Ext.ux.KeySequenceMap(document, {
sequence : 'qwerty',
fn : myHandler
});
map.addBinding({
sequence : 'abcd',
stopEvent : true,
ctrl : true,
fn : myOtherHandler,
scope : myOtherObject
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment