code: function med(fn) {
      return function(e, k) {
        if (!self.keyboard.mediaKeysAreFKeys) {
          // Block Back, Forward, and Reload keys to avoid navigating away from
          // the current page.
          return (e.keyCode == 166 || e.keyCode == 167 || e.keyCode == 168) ?
              hterm.Keyboard.KeyActions.CANCEL :
              hterm.Keyboard.KeyActions.PASS;
        }
        return resolve(fn, e, k);
      };
    }
docs: Ignore if not trapping media keys.