pass in the env to canon.execute to allow multiple editors

This commit is contained in:
Fabian Jakobs 2010-12-14 11:36:21 +01:00
commit 5e0695b588
3 changed files with 8 additions and 8 deletions

View file

@ -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);
}