-
-
Notifications
You must be signed in to change notification settings - Fork 411
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
8b80cdf
commit 7c81432
Showing
3 changed files
with
5 additions
and
5 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 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]> | ||
|
@@ -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) { | ||
|
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.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", | ||
|