text: /**
   * adds a pause and unpause method to Mousetrap
   * this allows you to enable or disable keyboard shortcuts
   * without having to reset Mousetrap and rebind everything
   *
   * https://github.com/ccampbell/mousetrap/blob/master/plugins/pause/mousetrap-pause.js
   */
  export default function (Mousetrap) {
      const _originalStopCallback = Mousetrap.prototype.stopCallback;
  
      Mousetrap.prototype.stopCallback = function (e, element, combo) {
          const self = this;
  
          if (self.paused) {
              return true;
          }
  
          return _originalStopCallback.call(self, e, element, combo);
      };
  
      Mousetrap.prototype.pause = function () {
          const self = this;
          self.paused = true;
      };
  
      Mousetrap.prototype.unpause = function () {
          const self = this;
          self.paused = false;
      };
  
      Mousetrap.init();
  }
  