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.
*
* Copyright (c) 2019 kenny wong <wowohoo@qq.com>
@ -186,7 +186,7 @@ function filter(event) {
var tagName = target.tagName;
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;
}

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.
*
* Copyright (c) 2019 kenny wong <wowohoo@qq.com>
@ -184,7 +184,7 @@ function filter(event) {
var tagName = target.tagName;
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;
}

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.
*
* Copyright (c) 2019 kenny wong <wowohoo@qq.com>
@ -12,7 +12,7 @@
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global = global || self, global.hotkeys = factory());
}(this, function () { 'use strict';
}(this, (function () { 'use strict';
function _typeof(obj) {
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
@ -190,7 +190,7 @@
var tagName = target.tagName;
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;
}
@ -547,4 +547,4 @@
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",
"version": "3.7.2",
"version": "3.7.3",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

@ -1,7 +1,7 @@
{
"name": "hotkeys-js",
"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",
"types": "index.d.ts",
"module": "dist/hotkeys.esm.js",

Loading…
Cancel
Save