mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05: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
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue