From ba326d6b97db05f76b72f8d6332b8003bee4d4c2 Mon Sep 17 00:00:00 2001 From: Romain Lamothe Date: Sun, 30 Oct 2022 16:13:09 +0100 Subject: [PATCH] 2.1.0 --- dist/VueFileToolbarMenu.common.js | 10419 +++++---------- dist/VueFileToolbarMenu.common.js.map | 2 +- dist/VueFileToolbarMenu.css | 2 +- dist/VueFileToolbarMenu.umd.js | 10421 +++++----------- dist/VueFileToolbarMenu.umd.js.map | 2 +- dist/VueFileToolbarMenu.umd.min.js | 11 +- dist/VueFileToolbarMenu.umd.min.js.map | 2 +- .../material-icons-outlined.26da31fa.woff2 | Bin 148392 -> 0 bytes .../material-icons-outlined.78a93b20.woff | Bin 0 -> 182028 bytes .../material-icons-outlined.c5c69d3d.woff | Bin 173676 -> 0 bytes .../material-icons-outlined.f86cb7b0.woff2 | Bin 0 -> 155276 bytes .../fonts/material-icons-round.4092b875.woff2 | Bin 166596 -> 0 bytes dist/fonts/material-icons-round.92dc7ca2.woff | Bin 0 -> 206260 bytes dist/fonts/material-icons-round.9dc13eca.woff | Bin 197916 -> 0 bytes .../fonts/material-icons-round.b10ec9db.woff2 | Bin 0 -> 173620 bytes .../fonts/material-icons-sharp.1b68a840.woff2 | Bin 129976 -> 0 bytes .../fonts/material-icons-sharp.3885863e.woff2 | Bin 0 -> 135984 bytes dist/fonts/material-icons-sharp.8c94b18e.woff | Bin 149504 -> 0 bytes dist/fonts/material-icons-sharp.a71cb2bf.woff | Bin 0 -> 156236 bytes .../material-icons-two-tone.0b6b657d.woff2 | Bin 202608 -> 0 bytes .../material-icons-two-tone.588d6313.woff | Bin 0 -> 339600 bytes .../material-icons-two-tone.675bd578.woff2 | Bin 0 -> 215704 bytes .../material-icons-two-tone.faff326d.woff | Bin 321724 -> 0 bytes dist/fonts/material-icons.49f2e1a9.woff | Bin 156316 -> 0 bytes dist/fonts/material-icons.4ad034d2.woff | Bin 0 -> 164912 bytes dist/fonts/material-icons.59322316.woff2 | Bin 0 -> 128352 bytes dist/fonts/material-icons.d34eddcf.woff2 | Bin 121784 -> 0 bytes docs/css/app.66978772.css | 1 + docs/css/app.d714f48c.css | 1 - docs/css/chunk-vendors.8bfdd3bd.css | 1 - .../material-icons-outlined.26da31fa.woff2 | Bin 148392 -> 0 bytes .../material-icons-outlined.78a93b20.woff | Bin 0 -> 182028 bytes .../material-icons-outlined.c5c69d3d.woff | Bin 173676 -> 0 bytes .../material-icons-outlined.f86cb7b0.woff2 | Bin 0 -> 155276 bytes .../fonts/material-icons-round.4092b875.woff2 | Bin 166596 -> 0 bytes docs/fonts/material-icons-round.92dc7ca2.woff | Bin 0 -> 206260 bytes docs/fonts/material-icons-round.9dc13eca.woff | Bin 197916 -> 0 bytes .../fonts/material-icons-round.b10ec9db.woff2 | Bin 0 -> 173620 bytes .../fonts/material-icons-sharp.1b68a840.woff2 | Bin 129976 -> 0 bytes .../fonts/material-icons-sharp.3885863e.woff2 | Bin 0 -> 135984 bytes docs/fonts/material-icons-sharp.8c94b18e.woff | Bin 149504 -> 0 bytes docs/fonts/material-icons-sharp.a71cb2bf.woff | Bin 0 -> 156236 bytes .../material-icons-two-tone.0b6b657d.woff2 | Bin 202608 -> 0 bytes .../material-icons-two-tone.588d6313.woff | Bin 0 -> 339600 bytes .../material-icons-two-tone.675bd578.woff2 | Bin 0 -> 215704 bytes .../material-icons-two-tone.faff326d.woff | Bin 321724 -> 0 bytes docs/fonts/material-icons.49f2e1a9.woff | Bin 156316 -> 0 bytes docs/fonts/material-icons.4ad034d2.woff | Bin 0 -> 164912 bytes docs/fonts/material-icons.59322316.woff2 | Bin 0 -> 128352 bytes docs/fonts/material-icons.d34eddcf.woff2 | Bin 121784 -> 0 bytes docs/index.html | 2 +- docs/js/app.69b57a44.js | 2 - docs/js/app.69b57a44.js.map | 1 - docs/js/app.bc96f8a3.js | 2 + docs/js/app.bc96f8a3.js.map | 1 + docs/js/chunk-vendors.09c49810.js | 11 - docs/js/chunk-vendors.09c49810.js.map | 1 - docs/js/chunk-vendors.5ffe3abd.js | 11 + docs/js/chunk-vendors.5ffe3abd.js.map | 1 + package.json | 2 +- 60 files changed, 5670 insertions(+), 15226 deletions(-) delete mode 100644 dist/fonts/material-icons-outlined.26da31fa.woff2 create mode 100644 dist/fonts/material-icons-outlined.78a93b20.woff delete mode 100644 dist/fonts/material-icons-outlined.c5c69d3d.woff create mode 100644 dist/fonts/material-icons-outlined.f86cb7b0.woff2 delete mode 100644 dist/fonts/material-icons-round.4092b875.woff2 create mode 100644 dist/fonts/material-icons-round.92dc7ca2.woff delete mode 100644 dist/fonts/material-icons-round.9dc13eca.woff create mode 100644 dist/fonts/material-icons-round.b10ec9db.woff2 delete mode 100644 dist/fonts/material-icons-sharp.1b68a840.woff2 create mode 100644 dist/fonts/material-icons-sharp.3885863e.woff2 delete mode 100644 dist/fonts/material-icons-sharp.8c94b18e.woff create mode 100644 dist/fonts/material-icons-sharp.a71cb2bf.woff delete mode 100644 dist/fonts/material-icons-two-tone.0b6b657d.woff2 create mode 100644 dist/fonts/material-icons-two-tone.588d6313.woff create mode 100644 dist/fonts/material-icons-two-tone.675bd578.woff2 delete mode 100644 dist/fonts/material-icons-two-tone.faff326d.woff delete mode 100644 dist/fonts/material-icons.49f2e1a9.woff create mode 100644 dist/fonts/material-icons.4ad034d2.woff create mode 100644 dist/fonts/material-icons.59322316.woff2 delete mode 100644 dist/fonts/material-icons.d34eddcf.woff2 create mode 100644 docs/css/app.66978772.css delete mode 100644 docs/css/app.d714f48c.css delete mode 100644 docs/css/chunk-vendors.8bfdd3bd.css delete mode 100644 docs/fonts/material-icons-outlined.26da31fa.woff2 create mode 100644 docs/fonts/material-icons-outlined.78a93b20.woff delete mode 100644 docs/fonts/material-icons-outlined.c5c69d3d.woff create mode 100644 docs/fonts/material-icons-outlined.f86cb7b0.woff2 delete mode 100644 docs/fonts/material-icons-round.4092b875.woff2 create mode 100644 docs/fonts/material-icons-round.92dc7ca2.woff delete mode 100644 docs/fonts/material-icons-round.9dc13eca.woff create mode 100644 docs/fonts/material-icons-round.b10ec9db.woff2 delete mode 100644 docs/fonts/material-icons-sharp.1b68a840.woff2 create mode 100644 docs/fonts/material-icons-sharp.3885863e.woff2 delete mode 100644 docs/fonts/material-icons-sharp.8c94b18e.woff create mode 100644 docs/fonts/material-icons-sharp.a71cb2bf.woff delete mode 100644 docs/fonts/material-icons-two-tone.0b6b657d.woff2 create mode 100644 docs/fonts/material-icons-two-tone.588d6313.woff create mode 100644 docs/fonts/material-icons-two-tone.675bd578.woff2 delete mode 100644 docs/fonts/material-icons-two-tone.faff326d.woff delete mode 100644 docs/fonts/material-icons.49f2e1a9.woff create mode 100644 docs/fonts/material-icons.4ad034d2.woff create mode 100644 docs/fonts/material-icons.59322316.woff2 delete mode 100644 docs/fonts/material-icons.d34eddcf.woff2 delete mode 100644 docs/js/app.69b57a44.js delete mode 100644 docs/js/app.69b57a44.js.map create mode 100644 docs/js/app.bc96f8a3.js create mode 100644 docs/js/app.bc96f8a3.js.map delete mode 100644 docs/js/chunk-vendors.09c49810.js delete mode 100644 docs/js/chunk-vendors.09c49810.js.map create mode 100644 docs/js/chunk-vendors.5ffe3abd.js create mode 100644 docs/js/chunk-vendors.5ffe3abd.js.map diff --git a/dist/VueFileToolbarMenu.common.js b/dist/VueFileToolbarMenu.common.js index 459e24c..f8fca49 100644 --- a/dist/VueFileToolbarMenu.common.js +++ b/dist/VueFileToolbarMenu.common.js @@ -1,763 +1,817 @@ -module.exports = -/******/ (function(modules) { // webpackBootstrap -/******/ // The module cache -/******/ var installedModules = {}; -/******/ -/******/ // The require function -/******/ function __webpack_require__(moduleId) { -/******/ -/******/ // Check if module is in cache -/******/ if(installedModules[moduleId]) { -/******/ return installedModules[moduleId].exports; -/******/ } -/******/ // Create a new module (and put it into the cache) -/******/ var module = installedModules[moduleId] = { -/******/ i: moduleId, -/******/ l: false, -/******/ exports: {} -/******/ }; -/******/ -/******/ // Execute the module function -/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); -/******/ -/******/ // Flag the module as loaded -/******/ module.l = true; -/******/ -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } -/******/ -/******/ -/******/ // expose the modules object (__webpack_modules__) -/******/ __webpack_require__.m = modules; -/******/ -/******/ // expose the module cache -/******/ __webpack_require__.c = installedModules; -/******/ -/******/ // define getter function for harmony exports -/******/ __webpack_require__.d = function(exports, name, getter) { -/******/ if(!__webpack_require__.o(exports, name)) { -/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); -/******/ } -/******/ }; -/******/ -/******/ // define __esModule on exports -/******/ __webpack_require__.r = function(exports) { -/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { -/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); -/******/ } -/******/ Object.defineProperty(exports, '__esModule', { value: true }); -/******/ }; -/******/ -/******/ // create a fake namespace object -/******/ // mode & 1: value is a module id, require it -/******/ // mode & 2: merge all properties of value into the ns -/******/ // mode & 4: return value when already ns object -/******/ // mode & 8|1: behave like require -/******/ __webpack_require__.t = function(value, mode) { -/******/ if(mode & 1) value = __webpack_require__(value); -/******/ if(mode & 8) return value; -/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; -/******/ var ns = Object.create(null); -/******/ __webpack_require__.r(ns); -/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); -/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); -/******/ return ns; -/******/ }; -/******/ -/******/ // getDefaultExport function for compatibility with non-harmony modules -/******/ __webpack_require__.n = function(module) { -/******/ var getter = module && module.__esModule ? -/******/ function getDefault() { return module['default']; } : -/******/ function getModuleExports() { return module; }; -/******/ __webpack_require__.d(getter, 'a', getter); -/******/ return getter; -/******/ }; -/******/ -/******/ // Object.prototype.hasOwnProperty.call -/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; -/******/ -/******/ // __webpack_public_path__ -/******/ __webpack_require__.p = ""; -/******/ -/******/ -/******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = "fb15"); -/******/ }) -/************************************************************************/ -/******/ ({ - -/***/ "00b4": -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -// TODO: Remove from `core-js@4` since it's moved to entry points -__webpack_require__("ac1f"); -var $ = __webpack_require__("23e7"); -var global = __webpack_require__("da84"); -var call = __webpack_require__("c65b"); -var uncurryThis = __webpack_require__("e330"); -var isCallable = __webpack_require__("1626"); -var isObject = __webpack_require__("861d"); - -var DELEGATES_TO_EXEC = function () { - var execCalled = false; - var re = /[ac]/; - re.exec = function () { - execCalled = true; - return /./.exec.apply(this, arguments); - }; - return re.test('abc') === true && execCalled; -}(); - -var Error = global.Error; -var un$Test = uncurryThis(/./.test); - -// `RegExp.prototype.test` method -// https://tc39.es/ecma262/#sec-regexp.prototype.test -$({ target: 'RegExp', proto: true, forced: !DELEGATES_TO_EXEC }, { - test: function (str) { - var exec = this.exec; - if (!isCallable(exec)) return un$Test(this, str); - var result = call(exec, this, str); - if (result !== null && !isObject(result)) { - throw new Error('RegExp exec method returned something other than an Object or null'); - } - return !!result; - } -}); +/******/ (function() { // webpackBootstrap +/******/ "use strict"; +/******/ var __webpack_modules__ = ({ +/***/ 584: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { -/***/ }), -/***/ "00ee": -/***/ (function(module, exports, __webpack_require__) { +// EXPORTS +__webpack_require__.d(__webpack_exports__, { + "Z": function() { return /* binding */ bar_hotkey_manager; } +}); -var wellKnownSymbol = __webpack_require__("b622"); +;// CONCATENATED MODULE: ./node_modules/hotkeys-js/dist/hotkeys.esm.js +/**! + * hotkeys-js v3.10.0 + * A simple micro-library for defining and dispatching keyboard shortcuts. It has no dependencies. + * + * Copyright (c) 2022 kenny wong + * http://jaywcjlove.github.io/hotkeys + * Licensed under the MIT license + */ -var TO_STRING_TAG = wellKnownSymbol('toStringTag'); -var test = {}; +var isff = typeof navigator !== 'undefined' ? navigator.userAgent.toLowerCase().indexOf('firefox') > 0 : false; // 绑定事件 -test[TO_STRING_TAG] = 'z'; +function addEvent(object, event, method, useCapture) { + if (object.addEventListener) { + object.addEventListener(event, method, useCapture); + } else if (object.attachEvent) { + object.attachEvent("on".concat(event), function () { + method(window.event); + }); + } +} // 修饰键转换成对应的键码 -module.exports = String(test) === '[object z]'; +function getMods(modifier, key) { + var mods = key.slice(0, key.length - 1); -/***/ }), + for (var i = 0; i < mods.length; i++) { + mods[i] = modifier[mods[i].toLowerCase()]; + } -/***/ "0366": -/***/ (function(module, exports, __webpack_require__) { + return mods; +} // 处理传的key字符串转换成数组 -var uncurryThis = __webpack_require__("e330"); -var aCallable = __webpack_require__("59ed"); -var NATIVE_BIND = __webpack_require__("40d5"); -var bind = uncurryThis(uncurryThis.bind); +function getKeys(key) { + if (typeof key !== 'string') key = ''; + key = key.replace(/\s/g, ''); // 匹配任何空白字符,包括空格、制表符、换页符等等 -// optional / simple context binding -module.exports = function (fn, that) { - aCallable(fn); - return that === undefined ? fn : NATIVE_BIND ? bind(fn, that) : function (/* ...args */) { - return fn.apply(that, arguments); - }; -}; + var keys = key.split(','); // 同时设置多个快捷键,以','分割 + var index = keys.lastIndexOf(''); // 快捷键可能包含',',需特殊处理 -/***/ }), + for (; index >= 0;) { + keys[index - 1] += ','; + keys.splice(index, 1); + index = keys.lastIndexOf(''); + } -/***/ "057f": -/***/ (function(module, exports, __webpack_require__) { + return keys; +} // 比较修饰键的数组 -/* eslint-disable es/no-object-getownpropertynames -- safe */ -var classof = __webpack_require__("c6b6"); -var toIndexedObject = __webpack_require__("fc6a"); -var $getOwnPropertyNames = __webpack_require__("241c").f; -var arraySlice = __webpack_require__("4dae"); -var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames - ? Object.getOwnPropertyNames(window) : []; +function compareArray(a1, a2) { + var arr1 = a1.length >= a2.length ? a1 : a2; + var arr2 = a1.length >= a2.length ? a2 : a1; + var isIndex = true; -var getWindowNames = function (it) { - try { - return $getOwnPropertyNames(it); - } catch (error) { - return arraySlice(windowNames); + for (var i = 0; i < arr1.length; i++) { + if (arr2.indexOf(arr1[i]) === -1) isIndex = false; } -}; - -// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window -module.exports.f = function getOwnPropertyNames(it) { - return windowNames && classof(it) == 'Window' - ? getWindowNames(it) - : $getOwnPropertyNames(toIndexedObject(it)); -}; + return isIndex; +} -/***/ }), +var _keyMap = { + backspace: 8, + '⌫': 8, + tab: 9, + clear: 12, + enter: 13, + '↩': 13, + return: 13, + esc: 27, + escape: 27, + space: 32, + left: 37, + up: 38, + right: 39, + down: 40, + del: 46, + delete: 46, + ins: 45, + insert: 45, + home: 36, + end: 35, + pageup: 33, + pagedown: 34, + capslock: 20, + num_0: 96, + num_1: 97, + num_2: 98, + num_3: 99, + num_4: 100, + num_5: 101, + num_6: 102, + num_7: 103, + num_8: 104, + num_9: 105, + num_multiply: 106, + num_add: 107, + num_enter: 108, + num_subtract: 109, + num_decimal: 110, + num_divide: 111, + '⇪': 20, + ',': 188, + '.': 190, + '/': 191, + '`': 192, + '-': isff ? 173 : 189, + '=': isff ? 61 : 187, + ';': isff ? 59 : 186, + '\'': 222, + '[': 219, + ']': 221, + '\\': 220 +}; // Modifier Keys -/***/ "06cf": -/***/ (function(module, exports, __webpack_require__) { - -var DESCRIPTORS = __webpack_require__("83ab"); -var call = __webpack_require__("c65b"); -var propertyIsEnumerableModule = __webpack_require__("d1e7"); -var createPropertyDescriptor = __webpack_require__("5c6c"); -var toIndexedObject = __webpack_require__("fc6a"); -var toPropertyKey = __webpack_require__("a04b"); -var hasOwn = __webpack_require__("1a2d"); -var IE8_DOM_DEFINE = __webpack_require__("0cfb"); - -// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe -var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; - -// `Object.getOwnPropertyDescriptor` method -// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor -exports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) { - O = toIndexedObject(O); - P = toPropertyKey(P); - if (IE8_DOM_DEFINE) try { - return $getOwnPropertyDescriptor(O, P); - } catch (error) { /* empty */ } - if (hasOwn(O, P)) return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O, P), O[P]); +var _modifier = { + // shiftKey + '⇧': 16, + shift: 16, + // altKey + '⌥': 18, + alt: 18, + option: 18, + // ctrlKey + '⌃': 17, + ctrl: 17, + control: 17, + // metaKey + '⌘': 91, + cmd: 91, + command: 91 }; +var modifierMap = { + 16: 'shiftKey', + 18: 'altKey', + 17: 'ctrlKey', + 91: 'metaKey', + shiftKey: 16, + ctrlKey: 17, + altKey: 18, + metaKey: 91 +}; +var _mods = { + 16: false, + 18: false, + 17: false, + 91: false +}; +var _handlers = {}; // F1~F12 special key +for (var k = 1; k < 20; k++) { + _keyMap["f".concat(k)] = 111 + k; +} -/***/ }), - -/***/ "07fa": -/***/ (function(module, exports, __webpack_require__) { - -var toLength = __webpack_require__("50c4"); +var _downKeys = []; // 记录摁下的绑定键 -// `LengthOfArrayLike` abstract operation -// https://tc39.es/ecma262/#sec-lengthofarraylike -module.exports = function (obj) { - return toLength(obj.length); -}; +var winListendFocus = false; // window是否已经监听了focus事件 +var _scope = 'all'; // 默认热键范围 -/***/ }), +var elementHasBindEvent = []; // 已绑定事件的节点记录 +// 返回键码 -/***/ "0b42": -/***/ (function(module, exports, __webpack_require__) { - -var global = __webpack_require__("da84"); -var isArray = __webpack_require__("e8b5"); -var isConstructor = __webpack_require__("68ee"); -var isObject = __webpack_require__("861d"); -var wellKnownSymbol = __webpack_require__("b622"); - -var SPECIES = wellKnownSymbol('species'); -var Array = global.Array; - -// a part of `ArraySpeciesCreate` abstract operation -// https://tc39.es/ecma262/#sec-arrayspeciescreate -module.exports = function (originalArray) { - var C; - if (isArray(originalArray)) { - C = originalArray.constructor; - // cross-realm fallback - if (isConstructor(C) && (C === Array || isArray(C.prototype))) C = undefined; - else if (isObject(C)) { - C = C[SPECIES]; - if (C === null) C = undefined; - } - } return C === undefined ? Array : C; +var code = function code(x) { + return _keyMap[x.toLowerCase()] || _modifier[x.toLowerCase()] || x.toUpperCase().charCodeAt(0); }; - -/***/ }), - -/***/ "0cb2": -/***/ (function(module, exports, __webpack_require__) { - -var uncurryThis = __webpack_require__("e330"); -var toObject = __webpack_require__("7b0b"); - -var floor = Math.floor; -var charAt = uncurryThis(''.charAt); -var replace = uncurryThis(''.replace); -var stringSlice = uncurryThis(''.slice); -var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g; -var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g; - -// `GetSubstitution` abstract operation -// https://tc39.es/ecma262/#sec-getsubstitution -module.exports = function (matched, str, position, captures, namedCaptures, replacement) { - var tailPos = position + matched.length; - var m = captures.length; - var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED; - if (namedCaptures !== undefined) { - namedCaptures = toObject(namedCaptures); - symbols = SUBSTITUTION_SYMBOLS; - } - return replace(replacement, symbols, function (match, ch) { - var capture; - switch (charAt(ch, 0)) { - case '$': return '$'; - case '&': return matched; - case '`': return stringSlice(str, 0, position); - case "'": return stringSlice(str, tailPos); - case '<': - capture = namedCaptures[stringSlice(ch, 1, -1)]; - break; - default: // \d\d? - var n = +ch; - if (n === 0) return match; - if (n > m) { - var f = floor(n / 10); - if (f === 0) return match; - if (f <= m) return captures[f - 1] === undefined ? charAt(ch, 1) : captures[f - 1] + charAt(ch, 1); - return match; - } - capture = captures[n - 1]; - } - return capture === undefined ? '' : capture; +var getKey = function getKey(x) { + return Object.keys(_keyMap).find(function (k) { + return _keyMap[k] === x; }); }; +var getModifier = function getModifier(x) { + return Object.keys(_modifier).find(function (k) { + return _modifier[k] === x; + }); +}; // 设置获取当前范围(默认为'所有') -/***/ }), -/***/ "0cfb": -/***/ (function(module, exports, __webpack_require__) { +function setScope(scope) { + _scope = scope || 'all'; +} // 获取当前范围 -var DESCRIPTORS = __webpack_require__("83ab"); -var fails = __webpack_require__("d039"); -var createElement = __webpack_require__("cc12"); -// Thanks to IE8 for its funny defineProperty -module.exports = !DESCRIPTORS && !fails(function () { - // eslint-disable-next-line es/no-object-defineproperty -- required for testing - return Object.defineProperty(createElement('div'), 'a', { - get: function () { return 7; } - }).a != 7; -}); +function getScope() { + return _scope || 'all'; +} // 获取摁下绑定键的键值 -/***/ }), +function getPressedKeyCodes() { + return _downKeys.slice(0); +} -/***/ "0d51": -/***/ (function(module, exports, __webpack_require__) { +function getPressedKeyString() { + return _downKeys.map(function (c) { + return getKey(c) || getModifier(c) || String.fromCharCode(c); + }); +} // 表单控件控件判断 返回 Boolean +// hotkey is effective only when filter return true -var global = __webpack_require__("da84"); -var String = global.String; +function filter(event) { + var target = event.target || event.srcElement; + var tagName = target.tagName; + var flag = true; // ignore: isContentEditable === 'true', and