-
-
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
49c6aef
commit bb85754
Showing
3 changed files
with
6 additions
and
6 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,8 +1,8 @@ | ||
/*! | ||
* hotkeys-js v2.0.7 | ||
* hotkeys-js v2.0.8 | ||
* A simple micro-library for defining and dispatching keyboard shortcuts. It has no dependencies. | ||
* | ||
* Copyright (c) 2017 kenny wang <[email protected]> | ||
* Copyright (c) 2018 kenny wang <[email protected]> | ||
* https://github.com/jaywcjlove/hotkeys.git | ||
* | ||
* Licensed under the MIT license. | ||
|
@@ -279,7 +279,7 @@ | |
} | ||
// 清除修饰键 | ||
function clearModifier(event) { | ||
var key = event.keyCode || e.which || e.charCode, i = _downKeys.indexOf(key); | ||
var key = event.keyCode || event.which || event.charCode, i = _downKeys.indexOf(key); | ||
// 从列表中清除按压过的键 | ||
if (i >= 0) _downKeys.splice(i, 1); | ||
// 修饰键 shiftKey altKey ctrlKey (command||metaKey) 清除 | ||
|
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,6 +1,6 @@ | ||
{ | ||
"name": "hotkeys-js", | ||
"version": "2.0.7", | ||
"version": "2.0.8", | ||
"description": "A simple micro-library for defining and dispatching keyboard shortcuts. It has no dependencies.", | ||
"author": "kenny wang <[email protected]>", | ||
"main": "dist/hotkeys.min.js", | ||
|