diff options
Diffstat (limited to 'app/assets/javascripts/behaviors/shortcuts/shortcuts_wiki.js')
-rw-r--r-- | app/assets/javascripts/behaviors/shortcuts/shortcuts_wiki.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/assets/javascripts/behaviors/shortcuts/shortcuts_wiki.js b/app/assets/javascripts/behaviors/shortcuts/shortcuts_wiki.js index b2801f9118d..62d612cfa6d 100644 --- a/app/assets/javascripts/behaviors/shortcuts/shortcuts_wiki.js +++ b/app/assets/javascripts/behaviors/shortcuts/shortcuts_wiki.js @@ -1,12 +1,12 @@ -import Mousetrap from 'mousetrap'; import findAndFollowLink from '~/lib/utils/navigation_utility'; -import { keysFor, EDIT_WIKI_PAGE } from './keybindings'; +import { EDIT_WIKI_PAGE } from './keybindings'; import ShortcutsNavigation from './shortcuts_navigation'; export default class ShortcutsWiki extends ShortcutsNavigation { constructor() { super(); - Mousetrap.bind(keysFor(EDIT_WIKI_PAGE), ShortcutsWiki.editWiki); + + this.bindCommand(EDIT_WIKI_PAGE, ShortcutsWiki.editWiki); } static editWiki() { |