BigW Consortium Gitlab

shortcuts_wiki.js 370 Bytes
/* eslint-disable class-methods-use-this */
/* global Mousetrap */
/* global ShortcutsNavigation */

import findAndFollowLink from './shortcuts_dashboard_navigation';

export default class ShortcutsWiki extends ShortcutsNavigation {
  constructor() {
    super();
    Mousetrap.bind('e', this.editWiki);
  }

  editWiki() {
    findAndFollowLink('.js-wiki-edit');
  }
}