pass in the env to canon.execute to allow multiple editors
This commit is contained in:
parent
46ac14ab62
commit
5e0695b588
3 changed files with 8 additions and 8 deletions
|
|
@ -56,7 +56,7 @@ var KeyBinding = function(element, editor, config) {
|
|||
var commandName = (_self.config.reverse[hashId] || {})[(key
|
||||
|| String.fromCharCode(e.keyCode)).toLowerCase()];
|
||||
|
||||
var success = canon.exec(commandName);
|
||||
var success = canon.exec(commandName, {editor: editor});
|
||||
if (success) {
|
||||
return event.stopEvent(e);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue