[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/js/dist/ -> keycodes.js (source)

   1  this["wp"] = this["wp"] || {}; this["wp"]["keycodes"] =
   2  /******/ (function(modules) { // webpackBootstrap
   3  /******/     // The module cache
   4  /******/     var installedModules = {};
   5  /******/
   6  /******/     // The require function
   7  /******/ 	function __webpack_require__(moduleId) {
   8  /******/
   9  /******/         // Check if module is in cache
  10  /******/         if(installedModules[moduleId]) {
  11  /******/             return installedModules[moduleId].exports;
  12  /******/         }
  13  /******/         // Create a new module (and put it into the cache)
  14  /******/         var module = installedModules[moduleId] = {
  15  /******/             i: moduleId,
  16  /******/             l: false,
  17  /******/             exports: {}
  18  /******/         };
  19  /******/
  20  /******/         // Execute the module function
  21  /******/         modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
  22  /******/
  23  /******/         // Flag the module as loaded
  24  /******/         module.l = true;
  25  /******/
  26  /******/         // Return the exports of the module
  27  /******/         return module.exports;
  28  /******/     }
  29  /******/
  30  /******/
  31  /******/     // expose the modules object (__webpack_modules__)
  32  /******/     __webpack_require__.m = modules;
  33  /******/
  34  /******/     // expose the module cache
  35  /******/     __webpack_require__.c = installedModules;
  36  /******/
  37  /******/     // define getter function for harmony exports
  38  /******/     __webpack_require__.d = function(exports, name, getter) {
  39  /******/         if(!__webpack_require__.o(exports, name)) {
  40  /******/             Object.defineProperty(exports, name, { enumerable: true, get: getter });
  41  /******/         }
  42  /******/     };
  43  /******/
  44  /******/     // define __esModule on exports
  45  /******/     __webpack_require__.r = function(exports) {
  46  /******/         if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
  47  /******/             Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
  48  /******/         }
  49  /******/         Object.defineProperty(exports, '__esModule', { value: true });
  50  /******/     };
  51  /******/
  52  /******/     // create a fake namespace object
  53  /******/     // mode & 1: value is a module id, require it
  54  /******/     // mode & 2: merge all properties of value into the ns
  55  /******/     // mode & 4: return value when already ns object
  56  /******/     // mode & 8|1: behave like require
  57  /******/     __webpack_require__.t = function(value, mode) {
  58  /******/         if(mode & 1) value = __webpack_require__(value);
  59  /******/         if(mode & 8) return value;
  60  /******/         if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
  61  /******/         var ns = Object.create(null);
  62  /******/         __webpack_require__.r(ns);
  63  /******/         Object.defineProperty(ns, 'default', { enumerable: true, value: value });
  64  /******/         if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
  65  /******/         return ns;
  66  /******/     };
  67  /******/
  68  /******/     // getDefaultExport function for compatibility with non-harmony modules
  69  /******/     __webpack_require__.n = function(module) {
  70  /******/         var getter = module && module.__esModule ?
  71  /******/ 			function getDefault() { return module['default']; } :
  72  /******/ 			function getModuleExports() { return module; };
  73  /******/         __webpack_require__.d(getter, 'a', getter);
  74  /******/         return getter;
  75  /******/     };
  76  /******/
  77  /******/     // Object.prototype.hasOwnProperty.call
  78  /******/     __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
  79  /******/
  80  /******/     // __webpack_public_path__
  81  /******/     __webpack_require__.p = "";
  82  /******/
  83  /******/
  84  /******/     // Load entry module and return exports
  85  /******/     return __webpack_require__(__webpack_require__.s = "./node_modules/@wordpress/keycodes/build-module/index.js");
  86  /******/ })
  87  /************************************************************************/
  88  /******/ ({
  89  
  90  /***/ "./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js":
  91  /*!**********************************************************************!*\
  92    !*** ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js ***!
  93    \**********************************************************************/
  94  /*! exports provided: default */
  95  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  96  
  97  "use strict";
  98  __webpack_require__.r(__webpack_exports__);
  99  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _arrayWithoutHoles; });
 100  function _arrayWithoutHoles(arr) {
 101    if (Array.isArray(arr)) {
 102      for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) {
 103        arr2[i] = arr[i];
 104      }
 105  
 106      return arr2;
 107    }
 108  }
 109  
 110  /***/ }),
 111  
 112  /***/ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js":
 113  /*!*******************************************************************!*\
 114    !*** ./node_modules/@babel/runtime/helpers/esm/defineProperty.js ***!
 115    \*******************************************************************/
 116  /*! exports provided: default */
 117  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 118  
 119  "use strict";
 120  __webpack_require__.r(__webpack_exports__);
 121  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _defineProperty; });
 122  function _defineProperty(obj, key, value) {
 123    if (key in obj) {
 124      Object.defineProperty(obj, key, {
 125        value: value,
 126        enumerable: true,
 127        configurable: true,
 128        writable: true
 129      });
 130    } else {
 131      obj[key] = value;
 132    }
 133  
 134    return obj;
 135  }
 136  
 137  /***/ }),
 138  
 139  /***/ "./node_modules/@babel/runtime/helpers/esm/iterableToArray.js":
 140  /*!********************************************************************!*\
 141    !*** ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js ***!
 142    \********************************************************************/
 143  /*! exports provided: default */
 144  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 145  
 146  "use strict";
 147  __webpack_require__.r(__webpack_exports__);
 148  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _iterableToArray; });
 149  function _iterableToArray(iter) {
 150    if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
 151  }
 152  
 153  /***/ }),
 154  
 155  /***/ "./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js":
 156  /*!**********************************************************************!*\
 157    !*** ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js ***!
 158    \**********************************************************************/
 159  /*! exports provided: default */
 160  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 161  
 162  "use strict";
 163  __webpack_require__.r(__webpack_exports__);
 164  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _nonIterableSpread; });
 165  function _nonIterableSpread() {
 166    throw new TypeError("Invalid attempt to spread non-iterable instance");
 167  }
 168  
 169  /***/ }),
 170  
 171  /***/ "./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js":
 172  /*!**********************************************************************!*\
 173    !*** ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js ***!
 174    \**********************************************************************/
 175  /*! exports provided: default */
 176  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 177  
 178  "use strict";
 179  __webpack_require__.r(__webpack_exports__);
 180  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _toConsumableArray; });
 181  /* harmony import */ var _arrayWithoutHoles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./arrayWithoutHoles */ "./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js");
 182  /* harmony import */ var _iterableToArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./iterableToArray */ "./node_modules/@babel/runtime/helpers/esm/iterableToArray.js");
 183  /* harmony import */ var _nonIterableSpread__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./nonIterableSpread */ "./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js");
 184  
 185  
 186  
 187  function _toConsumableArray(arr) {
 188    return Object(_arrayWithoutHoles__WEBPACK_IMPORTED_MODULE_0__["default"])(arr) || Object(_iterableToArray__WEBPACK_IMPORTED_MODULE_1__["default"])(arr) || Object(_nonIterableSpread__WEBPACK_IMPORTED_MODULE_2__["default"])();
 189  }
 190  
 191  /***/ }),
 192  
 193  /***/ "./node_modules/@wordpress/keycodes/build-module/index.js":
 194  /*!****************************************************************!*\
 195    !*** ./node_modules/@wordpress/keycodes/build-module/index.js ***!
 196    \****************************************************************/
 197  /*! exports provided: BACKSPACE, TAB, ENTER, ESCAPE, SPACE, LEFT, UP, RIGHT, DOWN, DELETE, F10, ALT, CTRL, COMMAND, SHIFT, rawShortcut, displayShortcutList, displayShortcut, shortcutAriaLabel, isKeyboardEvent */
 198  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 199  
 200  "use strict";
 201  __webpack_require__.r(__webpack_exports__);
 202  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BACKSPACE", function() { return BACKSPACE; });
 203  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TAB", function() { return TAB; });
 204  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ENTER", function() { return ENTER; });
 205  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ESCAPE", function() { return ESCAPE; });
 206  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SPACE", function() { return SPACE; });
 207  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LEFT", function() { return LEFT; });
 208  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UP", function() { return UP; });
 209  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RIGHT", function() { return RIGHT; });
 210  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DOWN", function() { return DOWN; });
 211  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DELETE", function() { return DELETE; });
 212  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F10", function() { return F10; });
 213  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ALT", function() { return ALT; });
 214  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CTRL", function() { return CTRL; });
 215  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "COMMAND", function() { return COMMAND; });
 216  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SHIFT", function() { return SHIFT; });
 217  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rawShortcut", function() { return rawShortcut; });
 218  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "displayShortcutList", function() { return displayShortcutList; });
 219  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "displayShortcut", function() { return displayShortcut; });
 220  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "shortcutAriaLabel", function() { return shortcutAriaLabel; });
 221  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isKeyboardEvent", function() { return isKeyboardEvent; });
 222  /* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
 223  /* harmony import */ var _babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/toConsumableArray */ "./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js");
 224  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash */ "lodash");
 225  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_2__);
 226  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
 227  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__);
 228  /* harmony import */ var _platform__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./platform */ "./node_modules/@wordpress/keycodes/build-module/platform.js");
 229  
 230  
 231  
 232  /**
 233   * Note: The order of the modifier keys in many of the [foo]Shortcut()
 234   * functions in this file are intentional and should not be changed. They're
 235   * designed to fit with the standard menu keyboard shortcuts shown in the
 236   * user's platform.
 237   *
 238   * For example, on MacOS menu shortcuts will place Shift before Command, but
 239   * on Windows Control will usually come first. So don't provide your own
 240   * shortcut combos directly to keyboardShortcut().
 241   */
 242  
 243  /**
 244   * External dependencies
 245   */
 246  
 247  /**
 248   * WordPress dependencies
 249   */
 250  
 251  
 252  /**
 253   * Internal dependencies
 254   */
 255  
 256  
 257  var BACKSPACE = 8;
 258  var TAB = 9;
 259  var ENTER = 13;
 260  var ESCAPE = 27;
 261  var SPACE = 32;
 262  var LEFT = 37;
 263  var UP = 38;
 264  var RIGHT = 39;
 265  var DOWN = 40;
 266  var DELETE = 46;
 267  var F10 = 121;
 268  var ALT = 'alt';
 269  var CTRL = 'ctrl'; // Understood in both Mousetrap and TinyMCE.
 270  
 271  var COMMAND = 'meta';
 272  var SHIFT = 'shift';
 273  var modifiers = {
 274    primary: function primary(_isApple) {
 275      return _isApple() ? [COMMAND] : [CTRL];
 276    },
 277    primaryShift: function primaryShift(_isApple) {
 278      return _isApple() ? [SHIFT, COMMAND] : [CTRL, SHIFT];
 279    },
 280    primaryAlt: function primaryAlt(_isApple) {
 281      return _isApple() ? [ALT, COMMAND] : [CTRL, ALT];
 282    },
 283    secondary: function secondary(_isApple) {
 284      return _isApple() ? [SHIFT, ALT, COMMAND] : [CTRL, SHIFT, ALT];
 285    },
 286    access: function access(_isApple) {
 287      return _isApple() ? [CTRL, ALT] : [SHIFT, ALT];
 288    },
 289    ctrl: function ctrl() {
 290      return [CTRL];
 291    },
 292    ctrlShift: function ctrlShift() {
 293      return [CTRL, SHIFT];
 294    },
 295    shift: function shift() {
 296      return [SHIFT];
 297    },
 298    shiftAlt: function shiftAlt() {
 299      return [SHIFT, ALT];
 300    }
 301  };
 302  /**
 303   * An object that contains functions to get raw shortcuts.
 304   * E.g. rawShortcut.primary( 'm' ) will return 'meta+m' on Mac.
 305   * These are intended for user with the KeyboardShortcuts component or TinyMCE.
 306   *
 307   * @type {Object} Keyed map of functions to raw shortcuts.
 308   */
 309  
 310  var rawShortcut = Object(lodash__WEBPACK_IMPORTED_MODULE_2__["mapValues"])(modifiers, function (modifier) {
 311    return function (character) {
 312      var _isApple = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _platform__WEBPACK_IMPORTED_MODULE_4__["isAppleOS"];
 313  
 314      return Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__["default"])(modifier(_isApple)).concat([character.toLowerCase()]).join('+');
 315    };
 316  });
 317  /**
 318   * Return an array of the parts of a keyboard shortcut chord for display
 319   * E.g displayShortcutList.primary( 'm' ) will return [ '⌘', 'M' ] on Mac.
 320   *
 321   * @type {Object} keyed map of functions to shortcut sequences
 322   */
 323  
 324  var displayShortcutList = Object(lodash__WEBPACK_IMPORTED_MODULE_2__["mapValues"])(modifiers, function (modifier) {
 325    return function (character) {
 326      var _replacementKeyMap;
 327  
 328      var _isApple = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _platform__WEBPACK_IMPORTED_MODULE_4__["isAppleOS"];
 329  
 330      var isApple = _isApple();
 331  
 332      var replacementKeyMap = (_replacementKeyMap = {}, Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(_replacementKeyMap, ALT, isApple ? '⌥' : 'Alt'), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(_replacementKeyMap, CTRL, isApple ? '^' : 'Ctrl'), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(_replacementKeyMap, COMMAND, '⌘'), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(_replacementKeyMap, SHIFT, isApple ? '⇧' : 'Shift'), _replacementKeyMap);
 333      var modifierKeys = modifier(_isApple).reduce(function (accumulator, key) {
 334        var replacementKey = Object(lodash__WEBPACK_IMPORTED_MODULE_2__["get"])(replacementKeyMap, key, key); // If on the Mac, adhere to platform convention and don't show plus between keys.
 335  
 336        if (isApple) {
 337          return Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__["default"])(accumulator).concat([replacementKey]);
 338        }
 339  
 340        return Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__["default"])(accumulator).concat([replacementKey, '+']);
 341      }, []);
 342      var capitalizedCharacter = Object(lodash__WEBPACK_IMPORTED_MODULE_2__["capitalize"])(character);
 343      return Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__["default"])(modifierKeys).concat([capitalizedCharacter]);
 344    };
 345  });
 346  /**
 347   * An object that contains functions to display shortcuts.
 348   * E.g. displayShortcut.primary( 'm' ) will return '⌘M' on Mac.
 349   *
 350   * @type {Object} Keyed map of functions to display shortcuts.
 351   */
 352  
 353  var displayShortcut = Object(lodash__WEBPACK_IMPORTED_MODULE_2__["mapValues"])(displayShortcutList, function (shortcutList) {
 354    return function (character) {
 355      var _isApple = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _platform__WEBPACK_IMPORTED_MODULE_4__["isAppleOS"];
 356  
 357      return shortcutList(character, _isApple).join('');
 358    };
 359  });
 360  /**
 361   * An object that contains functions to return an aria label for a keyboard shortcut.
 362   * E.g. shortcutAriaLabel.primary( '.' ) will return 'Command + Period' on Mac.
 363   */
 364  
 365  var shortcutAriaLabel = Object(lodash__WEBPACK_IMPORTED_MODULE_2__["mapValues"])(modifiers, function (modifier) {
 366    return function (character) {
 367      var _replacementKeyMap2;
 368  
 369      var _isApple = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _platform__WEBPACK_IMPORTED_MODULE_4__["isAppleOS"];
 370  
 371      var isApple = _isApple();
 372  
 373      var replacementKeyMap = (_replacementKeyMap2 = {}, Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(_replacementKeyMap2, SHIFT, 'Shift'), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(_replacementKeyMap2, COMMAND, isApple ? 'Command' : 'Control'), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(_replacementKeyMap2, CTRL, 'Control'), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(_replacementKeyMap2, ALT, isApple ? 'Option' : 'Alt'), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(_replacementKeyMap2, ',', Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__["__"])('Comma')), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(_replacementKeyMap2, '.', Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__["__"])('Period')), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(_replacementKeyMap2, '`', Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__["__"])('Backtick')), _replacementKeyMap2);
 374      return Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__["default"])(modifier(_isApple)).concat([character]).map(function (key) {
 375        return Object(lodash__WEBPACK_IMPORTED_MODULE_2__["capitalize"])(Object(lodash__WEBPACK_IMPORTED_MODULE_2__["get"])(replacementKeyMap, key, key));
 376      }).join(isApple ? ' ' : ' + ');
 377    };
 378  });
 379  /**
 380   * An object that contains functions to check if a keyboard event matches a
 381   * predefined shortcut combination.
 382   * E.g. isKeyboardEvent.primary( event, 'm' ) will return true if the event
 383   * signals pressing ⌘M.
 384   *
 385   * @type {Object} Keyed map of functions to match events.
 386   */
 387  
 388  var isKeyboardEvent = Object(lodash__WEBPACK_IMPORTED_MODULE_2__["mapValues"])(modifiers, function (getModifiers) {
 389    return function (event, character) {
 390      var _isApple = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : _platform__WEBPACK_IMPORTED_MODULE_4__["isAppleOS"];
 391  
 392      var mods = getModifiers(_isApple);
 393  
 394      if (!mods.every(function (key) {
 395        return event["".concat(key, "Key")];
 396      })) {
 397        return false;
 398      }
 399  
 400      if (!character) {
 401        return Object(lodash__WEBPACK_IMPORTED_MODULE_2__["includes"])(mods, event.key.toLowerCase());
 402      }
 403  
 404      return event.key === character;
 405    };
 406  });
 407  
 408  
 409  /***/ }),
 410  
 411  /***/ "./node_modules/@wordpress/keycodes/build-module/platform.js":
 412  /*!*******************************************************************!*\
 413    !*** ./node_modules/@wordpress/keycodes/build-module/platform.js ***!
 414    \*******************************************************************/
 415  /*! exports provided: isAppleOS */
 416  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 417  
 418  "use strict";
 419  __webpack_require__.r(__webpack_exports__);
 420  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isAppleOS", function() { return isAppleOS; });
 421  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash */ "lodash");
 422  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_0__);
 423  /**
 424   * External dependencies
 425   */
 426  
 427  /**
 428   * Return true if platform is MacOS.
 429   *
 430   * @param {Object} _window   window object by default; used for DI testing.
 431   *
 432   * @return {boolean}         True if MacOS; false otherwise.
 433   */
 434  
 435  function isAppleOS() {
 436    var _window = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : window;
 437  
 438    var platform = _window.navigator.platform;
 439    return platform.indexOf('Mac') !== -1 || Object(lodash__WEBPACK_IMPORTED_MODULE_0__["includes"])(['iPad', 'iPhone'], platform);
 440  }
 441  
 442  
 443  /***/ }),
 444  
 445  /***/ "@wordpress/i18n":
 446  /*!***************************************!*\
 447    !*** external {"this":["wp","i18n"]} ***!
 448    \***************************************/
 449  /*! no static exports found */
 450  /***/ (function(module, exports) {
 451  
 452  (function() { module.exports = this["wp"]["i18n"]; }());
 453  
 454  /***/ }),
 455  
 456  /***/ "lodash":
 457  /*!*************************!*\
 458    !*** external "lodash" ***!
 459    \*************************/
 460  /*! no static exports found */
 461  /***/ (function(module, exports) {
 462  
 463  (function() { module.exports = this["lodash"]; }());
 464  
 465  /***/ })
 466  
 467  /******/ });
 468  //# sourceMappingURL=keycodes.js.map


Generated: Mon Jan 7 01:00:05 2019 Cross-referenced by PHPXref 0.7.1