gitlab-org--gitlab-foss/app/assets/javascripts/shortcuts_wiki.js
2017-10-13 11:38:09 +01:00

16 lines
395 B
JavaScript

/* eslint-disable class-methods-use-this */
/* global Mousetrap */
import ShortcutsNavigation from './shortcuts_navigation';
import findAndFollowLink from './shortcuts_dashboard_navigation';
export default class ShortcutsWiki extends ShortcutsNavigation {
constructor() {
super();
Mousetrap.bind('e', this.editWiki);
}
editWiki() {
findAndFollowLink('.js-wiki-edit');
}
}