mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-14 09:52:09 +03:00
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:
commit
07edc94c84
@ -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);
|
||||
});
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user