debian-mirror-gitlab/app/assets/javascripts/shortcuts_wiki.js

15 lines
378 B
JavaScript
Raw Normal View History

2018-03-17 18:26:18 +05:30
import Mousetrap from 'mousetrap';
import ShortcutsNavigation from './shortcuts_navigation';
2017-08-17 22:00:37 +05:30
import findAndFollowLink from './shortcuts_dashboard_navigation';
export default class ShortcutsWiki extends ShortcutsNavigation {
constructor() {
super();
2018-03-17 18:26:18 +05:30
Mousetrap.bind('e', ShortcutsWiki.editWiki);
2017-08-17 22:00:37 +05:30
}
2018-03-17 18:26:18 +05:30
static editWiki() {
2017-08-17 22:00:37 +05:30
findAndFollowLink('.js-wiki-edit');
}
}