Skip to content

Commit

Permalink
#13 released v2.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Sep 10, 2017
1 parent 8b80cdf commit 7c81432
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions dist/hotkeys.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* hotkeys-js v2.0.3
* hotkeys-js v2.0.4
* A simple micro-library for defining and dispatching keyboard shortcuts. It has no dependencies.
*
* Copyright (c) 2017 kenny wang <[email protected]>
Expand Down Expand Up @@ -108,7 +108,7 @@
_mods[isff ? 224 : 91] = false;
// 返回键码
function code(x) {
return _keyMap[x.toUpperCase()] || x.toUpperCase().charCodeAt(0);
return _keyMap[x.toLowerCase()] || x.toUpperCase().charCodeAt(0);
}
// 设置获取当前范围(默认为'所有')
function setScope(scope) {
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.3",
"version": "2.0.4",
"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 7c81432

Please sign in to comment.