Build v3.7.3 #117

pull/120/head v3.7.3
jaywcjlove 5 years ago
parent 2eff0b7fd1
commit 4f1ee4666f

@ -1,5 +1,5 @@
/*! /*!
* hotkeys-js v3.7.2 * hotkeys-js v3.7.3
* A simple micro-library for defining and dispatching keyboard shortcuts. It has no dependencies. * A simple micro-library for defining and dispatching keyboard shortcuts. It has no dependencies.
* *
* Copyright (c) 2019 kenny wong <wowohoo@qq.com> * Copyright (c) 2019 kenny wong <wowohoo@qq.com>
@ -186,7 +186,7 @@ function filter(event) {
var tagName = target.tagName; var tagName = target.tagName;
var flag = true; // ignore: isContentEditable === 'true', <input> and <textarea> when readOnly state is false, <select> var flag = true; // ignore: isContentEditable === 'true', <input> and <textarea> when readOnly state is false, <select>
if (target.isContentEditable || tagName === 'TEXTAREA' || (tagName === 'INPUT' || tagName === 'TEXTAREA') && !target.readOnly) { if (target.isContentEditable || (tagName === 'INPUT' || tagName === 'TEXTAREA') && !target.readOnly) {
flag = false; flag = false;
} }

File diff suppressed because one or more lines are too long

@ -1,5 +1,5 @@
/*! /*!
* hotkeys-js v3.7.2 * hotkeys-js v3.7.3
* A simple micro-library for defining and dispatching keyboard shortcuts. It has no dependencies. * A simple micro-library for defining and dispatching keyboard shortcuts. It has no dependencies.
* *
* Copyright (c) 2019 kenny wong <wowohoo@qq.com> * Copyright (c) 2019 kenny wong <wowohoo@qq.com>
@ -184,7 +184,7 @@ function filter(event) {
var tagName = target.tagName; var tagName = target.tagName;
var flag = true; // ignore: isContentEditable === 'true', <input> and <textarea> when readOnly state is false, <select> var flag = true; // ignore: isContentEditable === 'true', <input> and <textarea> when readOnly state is false, <select>
if (target.isContentEditable || tagName === 'TEXTAREA' || (tagName === 'INPUT' || tagName === 'TEXTAREA') && !target.readOnly) { if (target.isContentEditable || (tagName === 'INPUT' || tagName === 'TEXTAREA') && !target.readOnly) {
flag = false; flag = false;
} }

8
dist/hotkeys.js vendored

@ -1,5 +1,5 @@
/*! /*!
* hotkeys-js v3.7.2 * hotkeys-js v3.7.3
* A simple micro-library for defining and dispatching keyboard shortcuts. It has no dependencies. * A simple micro-library for defining and dispatching keyboard shortcuts. It has no dependencies.
* *
* Copyright (c) 2019 kenny wong <wowohoo@qq.com> * Copyright (c) 2019 kenny wong <wowohoo@qq.com>
@ -12,7 +12,7 @@
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) : typeof define === 'function' && define.amd ? define(factory) :
(global = global || self, global.hotkeys = factory()); (global = global || self, global.hotkeys = factory());
}(this, function () { 'use strict'; }(this, (function () { 'use strict';
function _typeof(obj) { function _typeof(obj) {
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
@ -190,7 +190,7 @@
var tagName = target.tagName; var tagName = target.tagName;
var flag = true; // ignore: isContentEditable === 'true', <input> and <textarea> when readOnly state is false, <select> var flag = true; // ignore: isContentEditable === 'true', <input> and <textarea> when readOnly state is false, <select>
if (target.isContentEditable || tagName === 'TEXTAREA' || (tagName === 'INPUT' || tagName === 'TEXTAREA') && !target.readOnly) { if (target.isContentEditable || (tagName === 'INPUT' || tagName === 'TEXTAREA') && !target.readOnly) {
flag = false; flag = false;
} }
@ -547,4 +547,4 @@
return hotkeys; return hotkeys;
})); })));

File diff suppressed because one or more lines are too long

2
package-lock.json generated

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

@ -1,7 +1,7 @@
{ {
"name": "hotkeys-js", "name": "hotkeys-js",
"description": "A simple micro-library for defining and dispatching keyboard shortcuts. It has no dependencies.", "description": "A simple micro-library for defining and dispatching keyboard shortcuts. It has no dependencies.",
"version": "3.7.2", "version": "3.7.3",
"main": "index.js", "main": "index.js",
"types": "index.d.ts", "types": "index.d.ts",
"module": "dist/hotkeys.esm.js", "module": "dist/hotkeys.esm.js",

Loading…
Cancel
Save