Skip to content

Commit

Permalink
released v3.7.2 #109
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Sep 17, 2019
1 parent 98ce2d6 commit cd2b2e3
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 25 deletions.
11 changes: 4 additions & 7 deletions dist/hotkeys.common.js
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>
Expand Down Expand Up @@ -79,7 +79,6 @@ function compareArray(a1, a2) {
}

var _keyMap = {
// 特殊键
backspace: 8,
tab: 9,
clear: 12,
Expand Down Expand Up @@ -113,9 +112,9 @@ var _keyMap = {
'[': 219,
']': 221,
'\\': 220
};
}; // Modifier Keys

var _modifier = {
// 修饰键
// shiftKey
'⇧': 16,
shift: 16,
Expand All @@ -136,7 +135,6 @@ var modifierMap = {
16: 'shiftKey',
18: 'altKey',
17: 'ctrlKey',
// 兼容Firefox处理
91: 'metaKey',
shiftKey: 16,
ctrlKey: 17,
Expand All @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion dist/hotkeys.common.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 4 additions & 7 deletions dist/hotkeys.esm.js
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>
Expand Down Expand Up @@ -77,7 +77,6 @@ function compareArray(a1, a2) {
}

var _keyMap = {
// 特殊键
backspace: 8,
tab: 9,
clear: 12,
Expand Down Expand Up @@ -111,9 +110,9 @@ var _keyMap = {
'[': 219,
']': 221,
'\\': 220
};
}; // Modifier Keys

var _modifier = {
// 修饰键
// shiftKey
'⇧': 16,
shift: 16,
Expand All @@ -134,7 +133,6 @@ var modifierMap = {
16: 'shiftKey',
18: 'altKey',
17: 'ctrlKey',
// 兼容Firefox处理
91: 'metaKey',
shiftKey: 16,
ctrlKey: 17,
Expand All @@ -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;
Expand Down
11 changes: 4 additions & 7 deletions dist/hotkeys.js
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>
Expand Down Expand Up @@ -83,7 +83,6 @@
}

var _keyMap = {
// 特殊键
backspace: 8,
tab: 9,
clear: 12,
Expand Down Expand Up @@ -117,9 +116,9 @@
'[': 219,
']': 221,
'\\': 220
};
}; // Modifier Keys

var _modifier = {
// 修饰键
// shiftKey
'⇧': 16,
shift: 16,
Expand All @@ -140,7 +139,6 @@
16: 'shiftKey',
18: 'altKey',
17: 'ctrlKey',
// 兼容Firefox处理
91: 'metaKey',
shiftKey: 16,
ctrlKey: 17,
Expand All @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion dist/hotkeys.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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.1",
"version": "3.7.2",
"main": "index.js",
"types": "index.d.ts",
"module": "dist/hotkeys.esm.js",
Expand Down

0 comments on commit cd2b2e3

Please sign in to comment.