diff --git a/dist/hotkeys.common.js b/dist/hotkeys.common.js index 340bcb14..479b2be1 100644 --- a/dist/hotkeys.common.js +++ b/dist/hotkeys.common.js @@ -1,5 +1,5 @@ /*! - * hotkeys-js v3.7.1 + * hotkeys-js v3.7.2 * A simple micro-library for defining and dispatching keyboard shortcuts. It has no dependencies. * * Copyright (c) 2019 kenny wong @@ -79,7 +79,6 @@ function compareArray(a1, a2) { } var _keyMap = { - // 特殊键 backspace: 8, tab: 9, clear: 12, @@ -113,9 +112,9 @@ var _keyMap = { '[': 219, ']': 221, '\\': 220 -}; +}; // Modifier Keys + var _modifier = { - // 修饰键 // shiftKey '⇧': 16, shift: 16, @@ -136,7 +135,6 @@ var modifierMap = { 16: 'shiftKey', 18: 'altKey', 17: 'ctrlKey', - // 兼容Firefox处理 91: 'metaKey', shiftKey: 16, ctrlKey: 17, @@ -147,10 +145,9 @@ var _mods = { 16: false, 18: false, 17: false, - // 兼容Firefox处理 91: false }; -var _handlers = {}; // F1~F12 特殊键 +var _handlers = {}; // F1~F12 special key for (var k = 1; k < 20; k++) { _keyMap["f".concat(k)] = 111 + k; diff --git a/dist/hotkeys.common.min.js b/dist/hotkeys.common.min.js index 9ca45bef..70e3e9a9 100644 --- a/dist/hotkeys.common.min.js +++ b/dist/hotkeys.common.min.js @@ -1,2 +1,2 @@ -/*! hotkeys-js v3.7.1 | MIT (c) 2019 kenny wong | http://jaywcjlove.github.io/hotkeys */ +/*! hotkeys-js v3.7.2 | MIT (c) 2019 kenny wong | http://jaywcjlove.github.io/hotkeys */ "use strict";function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var isff="undefined"!=typeof navigator&&0 @@ -77,7 +77,6 @@ function compareArray(a1, a2) { } var _keyMap = { - // 特殊键 backspace: 8, tab: 9, clear: 12, @@ -111,9 +110,9 @@ var _keyMap = { '[': 219, ']': 221, '\\': 220 -}; +}; // Modifier Keys + var _modifier = { - // 修饰键 // shiftKey '⇧': 16, shift: 16, @@ -134,7 +133,6 @@ var modifierMap = { 16: 'shiftKey', 18: 'altKey', 17: 'ctrlKey', - // 兼容Firefox处理 91: 'metaKey', shiftKey: 16, ctrlKey: 17, @@ -145,10 +143,9 @@ var _mods = { 16: false, 18: false, 17: false, - // 兼容Firefox处理 91: false }; -var _handlers = {}; // F1~F12 特殊键 +var _handlers = {}; // F1~F12 special key for (var k = 1; k < 20; k++) { _keyMap["f".concat(k)] = 111 + k; diff --git a/dist/hotkeys.js b/dist/hotkeys.js index 688d6db0..7e8d6ecd 100644 --- a/dist/hotkeys.js +++ b/dist/hotkeys.js @@ -1,5 +1,5 @@ /*! - * hotkeys-js v3.7.1 + * hotkeys-js v3.7.2 * A simple micro-library for defining and dispatching keyboard shortcuts. It has no dependencies. * * Copyright (c) 2019 kenny wong @@ -83,7 +83,6 @@ } var _keyMap = { - // 特殊键 backspace: 8, tab: 9, clear: 12, @@ -117,9 +116,9 @@ '[': 219, ']': 221, '\\': 220 - }; + }; // Modifier Keys + var _modifier = { - // 修饰键 // shiftKey '⇧': 16, shift: 16, @@ -140,7 +139,6 @@ 16: 'shiftKey', 18: 'altKey', 17: 'ctrlKey', - // 兼容Firefox处理 91: 'metaKey', shiftKey: 16, ctrlKey: 17, @@ -151,10 +149,9 @@ 16: false, 18: false, 17: false, - // 兼容Firefox处理 91: false }; - var _handlers = {}; // F1~F12 特殊键 + var _handlers = {}; // F1~F12 special key for (var k = 1; k < 20; k++) { _keyMap["f".concat(k)] = 111 + k; diff --git a/dist/hotkeys.min.js b/dist/hotkeys.min.js index 5e3c429c..e4e8dfe2 100644 --- a/dist/hotkeys.min.js +++ b/dist/hotkeys.min.js @@ -1,2 +1,2 @@ -/*! hotkeys-js v3.7.1 | MIT (c) 2019 kenny wong | http://jaywcjlove.github.io/hotkeys */ +/*! hotkeys-js v3.7.2 | MIT (c) 2019 kenny wong | http://jaywcjlove.github.io/hotkeys */ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).hotkeys=t()}(this,function(){"use strict";function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var e="undefined"!=typeof navigator&&0