Add examples for new command.bindKey to demo.js, update Pilot & Cockpit

This commit is contained in:
Julian Viereck 2011-02-20 17:13:15 +01:00
commit c428908211
4 changed files with 67 additions and 7 deletions

View file

@ -98,10 +98,8 @@ var KeyBinding = function(editor) {
};
this.onCommandKey = function(e, hashId, keyCode) {
key = (keyUtil[keyCode] ||
String.fromCharCode(keyCode)).toLowerCase();
this.$callKeyboardHandler(e, hashId, key, keyCode);
var keyString = keyUtil.keyCodeToString(keyCode);
this.$callKeyboardHandler(e, hashId, keyString, keyCode);
};
this.onTextInput = function(text) {