Skip to content

Commit

Permalink
#17 released v2.0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Jan 5, 2018
1 parent 49c6aef commit bb85754
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions dist/hotkeys.js
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.
Expand Down Expand Up @@ -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) 清除
Expand Down
4 changes: 2 additions & 2 deletions 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.json
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",
Expand Down

0 comments on commit bb85754

Please sign in to comment.