released v3.8.1

pull/182/head
jaywcjlove 5 years ago
parent 0bfabfa2bf
commit cfb206138e

@ -1,5 +1,5 @@
/*!
* hotkeys-js v3.8.0
* hotkeys-js v3.8.1
* A simple micro-library for defining and dispatching keyboard shortcuts. It has no dependencies.
*
* Copyright (c) 2020 kenny wong <wowohoo@qq.com>
@ -172,7 +172,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 === 'INPUT' || tagName === 'TEXTAREA') && !target.readOnly) {
if (target.isContentEditable || (tagName === 'INPUT' || tagName === 'TEXTAREA' || tagName === 'SELECT') && !target.readOnly) {
flag = false;
}

File diff suppressed because one or more lines are too long

@ -1,5 +1,5 @@
/*!
* hotkeys-js v3.8.0
* hotkeys-js v3.8.1
* A simple micro-library for defining and dispatching keyboard shortcuts. It has no dependencies.
*
* Copyright (c) 2020 kenny wong <wowohoo@qq.com>
@ -170,7 +170,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 === 'INPUT' || tagName === 'TEXTAREA') && !target.readOnly) {
if (target.isContentEditable || (tagName === 'INPUT' || tagName === 'TEXTAREA' || tagName === 'SELECT') && !target.readOnly) {
flag = false;
}

4
dist/hotkeys.js vendored

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

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.8.0",
"version": "3.8.1",
"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.8.0",
"version": "3.8.1",
"main": "index.js",
"types": "index.d.ts",
"module": "dist/hotkeys.esm.js",

Loading…
Cancel
Save