released v3.7.6

pull/165/head v3.7.6
jaywcjlove 5 years ago
parent 5831035574
commit 5391a4ee1b

@ -1,5 +1,5 @@
/*!
* hotkeys-js v3.7.5
* hotkeys-js v3.7.6
* A simple micro-library for defining and dispatching keyboard shortcuts. It has no dependencies.
*
* Copyright (c) 2020 kenny wong <wowohoo@qq.com>
@ -10,20 +10,6 @@
'use strict';
function _typeof(obj) {
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
_typeof = function (obj) {
return typeof obj;
};
} else {
_typeof = function (obj) {
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
};
}
return _typeof(obj);
}
var isff = typeof navigator !== 'undefined' ? navigator.userAgent.toLowerCase().indexOf('firefox') > 0 : false; // 绑定事件
function addEvent(object, event, method) {
@ -262,7 +248,7 @@ function unbind(keysInfo) {
keysInfo.forEach(function (info) {
if (info.key) eachUnbind(info);
});
} else if (_typeof(keysInfo) === 'object') {
} else if (typeof keysInfo === 'object') {
// support like unbind({key: 'ctrl+a, ctrl+b', scope:'abc'})
if (keysInfo.key) eachUnbind(keysInfo);
} else if (typeof keysInfo === 'string') {

File diff suppressed because one or more lines are too long

@ -1,5 +1,5 @@
/*!
* hotkeys-js v3.7.5
* hotkeys-js v3.7.6
* A simple micro-library for defining and dispatching keyboard shortcuts. It has no dependencies.
*
* Copyright (c) 2020 kenny wong <wowohoo@qq.com>
@ -8,20 +8,6 @@
* Licensed under the MIT license.
*/
function _typeof(obj) {
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
_typeof = function (obj) {
return typeof obj;
};
} else {
_typeof = function (obj) {
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
};
}
return _typeof(obj);
}
var isff = typeof navigator !== 'undefined' ? navigator.userAgent.toLowerCase().indexOf('firefox') > 0 : false; // 绑定事件
function addEvent(object, event, method) {
@ -260,7 +246,7 @@ function unbind(keysInfo) {
keysInfo.forEach(function (info) {
if (info.key) eachUnbind(info);
});
} else if (_typeof(keysInfo) === 'object') {
} else if (typeof keysInfo === 'object') {
// support like unbind({key: 'ctrl+a, ctrl+b', scope:'abc'})
if (keysInfo.key) eachUnbind(keysInfo);
} else if (typeof keysInfo === 'string') {

18
dist/hotkeys.js vendored

@ -1,5 +1,5 @@
/*!
* hotkeys-js v3.7.5
* hotkeys-js v3.7.6
* A simple micro-library for defining and dispatching keyboard shortcuts. It has no dependencies.
*
* Copyright (c) 2020 kenny wong <wowohoo@qq.com>
@ -14,20 +14,6 @@
(global = global || self, global.hotkeys = factory());
}(this, (function () { 'use strict';
function _typeof(obj) {
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
_typeof = function (obj) {
return typeof obj;
};
} else {
_typeof = function (obj) {
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
};
}
return _typeof(obj);
}
var isff = typeof navigator !== 'undefined' ? navigator.userAgent.toLowerCase().indexOf('firefox') > 0 : false; // 绑定事件
function addEvent(object, event, method) {
@ -266,7 +252,7 @@
keysInfo.forEach(function (info) {
if (info.key) eachUnbind(info);
});
} else if (_typeof(keysInfo) === 'object') {
} else if (typeof keysInfo === 'object') {
// support like unbind({key: 'ctrl+a, ctrl+b', scope:'abc'})
if (keysInfo.key) eachUnbind(keysInfo);
} else if (typeof keysInfo === 'string') {

File diff suppressed because one or more lines are too long

2
package-lock.json generated

@ -1,6 +1,6 @@
{
"name": "hotkeys-js",
"version": "3.7.5",
"version": "3.7.6",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

@ -1,14 +1,14 @@
{
"name": "hotkeys-js",
"description": "A simple micro-library for defining and dispatching keyboard shortcuts. It has no dependencies.",
"version": "3.7.5",
"version": "3.7.6",
"main": "index.js",
"types": "index.d.ts",
"module": "dist/hotkeys.esm.js",
"scripts": {
"lint": "eslint --ext .js src website",
"deploy": "node scripts/build.js && npm run doc:build && gh-pages -d doc",
"build": "node scripts/build.js && npm run doc:build",
"build": "node scripts/build.js && npm run doc:build && npm run lint",
"watch": "node scripts/watch.js",
"pretest": "npm run build",
"test": "jest --coverage",

Loading…
Cancel
Save