Skip to content

Commit

Permalink
released v3.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed May 10, 2018
1 parent d38f511 commit 5db271c
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 9 deletions.
3 changes: 1 addition & 2 deletions dist/hotkeys.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,6 @@ function isPressed(keyCode) {
if (typeof keyCode === 'string') {
keyCode = code(keyCode); // 转换成键码
}

return _downKeys.indexOf(keyCode) !== -1;
}

Expand All @@ -188,8 +187,8 @@ function deleteScope(scope, newScope) {

// 清除修饰键
function clearModifier(event) {
var i = _downKeys.indexOf(key);
var key = event.keyCode || event.which || event.charCode;
var i = _downKeys.indexOf(key);

// 从列表中清除按压过的键
if (i >= 0) _downKeys.splice(i, 1);
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.

3 changes: 1 addition & 2 deletions dist/hotkeys.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@ function isPressed(keyCode) {
if (typeof keyCode === 'string') {
keyCode = code(keyCode); // 转换成键码
}

return _downKeys.indexOf(keyCode) !== -1;
}

Expand All @@ -186,8 +185,8 @@ function deleteScope(scope, newScope) {

// 清除修饰键
function clearModifier(event) {
var i = _downKeys.indexOf(key);
var key = event.keyCode || event.which || event.charCode;
var i = _downKeys.indexOf(key);

// 从列表中清除按压过的键
if (i >= 0) _downKeys.splice(i, 1);
Expand Down
3 changes: 1 addition & 2 deletions dist/hotkeys.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@ function isPressed(keyCode) {
if (typeof keyCode === 'string') {
keyCode = code(keyCode); // 转换成键码
}

return _downKeys.indexOf(keyCode) !== -1;
}

Expand All @@ -192,8 +191,8 @@ function deleteScope(scope, newScope) {

// 清除修饰键
function clearModifier(event) {
var i = _downKeys.indexOf(key);
var key = event.keyCode || event.which || event.charCode;
var i = _downKeys.indexOf(key);

// 从列表中清除按压过的键
if (i >= 0) _downKeys.splice(i, 1);
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.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.2.0",
"version": "3.3.0",
"main": "index.js",
"scripts": {
"lint": "eslint --ext .js src website",
Expand Down

0 comments on commit 5db271c

Please sign in to comment.