-
-
Notifications
You must be signed in to change notification settings - Fork 413
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
98ce2d6
commit cd2b2e3
Showing
7 changed files
with
16 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]> | ||
|
@@ -79,7 +79,6 @@ function compareArray(a1, a2) { | |
} | ||
|
||
var _keyMap = { | ||
// 特殊键 | ||
backspace: 8, | ||
tab: 9, | ||
clear: 12, | ||
|
@@ -113,9 +112,9 @@ var _keyMap = { | |
'[': 219, | ||
']': 221, | ||
'\\': 220 | ||
}; | ||
}; // Modifier Keys | ||
|
||
var _modifier = { | ||
// 修饰键 | ||
// shiftKey | ||
'⇧': 16, | ||
shift: 16, | ||
|
@@ -136,7 +135,6 @@ var modifierMap = { | |
16: 'shiftKey', | ||
18: 'altKey', | ||
17: 'ctrlKey', | ||
// 兼容Firefox处理 | ||
91: 'metaKey', | ||
shiftKey: 16, | ||
ctrlKey: 17, | ||
|
@@ -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; | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]> | ||
|
@@ -77,7 +77,6 @@ function compareArray(a1, a2) { | |
} | ||
|
||
var _keyMap = { | ||
// 特殊键 | ||
backspace: 8, | ||
tab: 9, | ||
clear: 12, | ||
|
@@ -111,9 +110,9 @@ var _keyMap = { | |
'[': 219, | ||
']': 221, | ||
'\\': 220 | ||
}; | ||
}; // Modifier Keys | ||
|
||
var _modifier = { | ||
// 修饰键 | ||
// shiftKey | ||
'⇧': 16, | ||
shift: 16, | ||
|
@@ -134,7 +133,6 @@ var modifierMap = { | |
16: 'shiftKey', | ||
18: 'altKey', | ||
17: 'ctrlKey', | ||
// 兼容Firefox处理 | ||
91: 'metaKey', | ||
shiftKey: 16, | ||
ctrlKey: 17, | ||
|
@@ -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; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]> | ||
|
@@ -83,7 +83,6 @@ | |
} | ||
|
||
var _keyMap = { | ||
// 特殊键 | ||
backspace: 8, | ||
tab: 9, | ||
clear: 12, | ||
|
@@ -117,9 +116,9 @@ | |
'[': 219, | ||
']': 221, | ||
'\\': 220 | ||
}; | ||
}; // Modifier Keys | ||
|
||
var _modifier = { | ||
// 修饰键 | ||
// shiftKey | ||
'⇧': 16, | ||
shift: 16, | ||
|
@@ -140,7 +139,6 @@ | |
16: 'shiftKey', | ||
18: 'altKey', | ||
17: 'ctrlKey', | ||
// 兼容Firefox处理 | ||
91: 'metaKey', | ||
shiftKey: 16, | ||
ctrlKey: 17, | ||
|
@@ -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; | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters