gitlab-org--gitlab-foss/app/assets/javascripts/shortcuts_wiki.js
2018-01-10 11:07:42 +00:00

14 lines
378 B
JavaScript

import Mousetrap from 'mousetrap';
import ShortcutsNavigation from './shortcuts_navigation';
import findAndFollowLink from './shortcuts_dashboard_navigation';
export default class ShortcutsWiki extends ShortcutsNavigation {
constructor() {
super();
Mousetrap.bind('e', ShortcutsWiki.editWiki);
}
static editWiki() {
findAndFollowLink('.js-wiki-edit');
}
}