Merge pull request #5826 from kevinansfield/fix-shortcuts-breaking-editor

Fix shortcut keys sometimes not being cleared due to scope changes
This commit is contained in:
Hannah Wolfe 2015-09-14 11:39:39 +01:00
commit 07edc94c84

View File

@ -69,7 +69,8 @@ var ShortcutsRoute = Ember.Mixin.create({
var shortcuts = this.get('shortcuts');
Ember.keys(shortcuts).forEach(function (shortcut) {
key.unbind(shortcut);
var scope = shortcuts[shortcut].scope || 'default';
key.unbind(shortcut, scope);
});
},