diff options
author | Phil Hughes <me@iamphill.com> | 2018-01-12 16:18:53 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-01-16 19:45:34 +0300 |
commit | 4ee29e897d38b1d8b31fce8d197270265a0a6f72 (patch) | |
tree | 341ab335f8d99a585f11c2892bd162320cf3c5ef /app/assets/javascripts/shortcuts.js | |
parent | b69d7ac3c9de7b0ba3e60ede70f1de630a53dfe6 (diff) |
fixed shortcuts not working on some pages
Diffstat (limited to 'app/assets/javascripts/shortcuts.js')
-rw-r--r-- | app/assets/javascripts/shortcuts.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/app/assets/javascripts/shortcuts.js b/app/assets/javascripts/shortcuts.js index d2f0d7410da..35a3f05c980 100644 --- a/app/assets/javascripts/shortcuts.js +++ b/app/assets/javascripts/shortcuts.js @@ -13,12 +13,10 @@ Mousetrap.stopCallback = (e, element, combo) => { }; export default class Shortcuts { - constructor(skipResetBindings) { + constructor() { this.onToggleHelp = this.onToggleHelp.bind(this); this.enabledHelp = []; - if (!skipResetBindings) { - Mousetrap.reset(); - } + Mousetrap.bind('?', this.onToggleHelp); Mousetrap.bind('s', Shortcuts.focusSearch); Mousetrap.bind('f', this.focusFilter.bind(this)); |