BigW Consortium Gitlab

shortcuts_wiki.js 370 Bytes
Newer Older
geoandri committed
1
/* eslint-disable class-methods-use-this */
2 3 4
/* global Mousetrap */
/* global ShortcutsNavigation */

geoandri committed
5 6
import findAndFollowLink from './shortcuts_dashboard_navigation';

7
export default class ShortcutsWiki extends ShortcutsNavigation {
geoandri committed
8 9
  constructor() {
    super();
geoandri committed
10
    Mousetrap.bind('e', this.editWiki);
geoandri committed
11
  }
12

geoandri committed
13
  editWiki() {
14
    findAndFollowLink('.js-wiki-edit');
geoandri committed
15 16
  }
}