Add examples for new command.bindKey to demo.js, update Pilot & Cockpit
This commit is contained in:
parent
c27fd43ebd
commit
c428908211
4 changed files with 67 additions and 7 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue