Skip to content

Commit

Permalink
fix: unbind keys issue (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeDaraW authored and jaywcjlove committed May 18, 2019
1 parent e3c00e2 commit b9cde08
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 6 deletions.
7 changes: 6 additions & 1 deletion dist/hotkeys.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,12 @@ function unbind(key, scope, method) {
// 将组合快捷键拆分为数组
keys = multipleKeys[i].split('+'); // 记录每个组合键中的修饰键的键码 返回数组

if (keys.length > 1) mods = getMods(_modifier, keys); // 获取除修饰键外的键值key
if (keys.length > 1) {
mods = getMods(_modifier, keys);
} else {
mods = [];
} // 获取除修饰键外的键值key


key = keys[keys.length - 1];
key = key === '*' ? '*' : code(key); // 判断是否传入范围,没有就获取范围
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.

7 changes: 6 additions & 1 deletion dist/hotkeys.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,12 @@ function unbind(key, scope, method) {
// 将组合快捷键拆分为数组
keys = multipleKeys[i].split('+'); // 记录每个组合键中的修饰键的键码 返回数组

if (keys.length > 1) mods = getMods(_modifier, keys); // 获取除修饰键外的键值key
if (keys.length > 1) {
mods = getMods(_modifier, keys);
} else {
mods = [];
} // 获取除修饰键外的键值key


key = keys[keys.length - 1];
key = key === '*' ? '*' : code(key); // 判断是否传入范围,没有就获取范围
Expand Down
7 changes: 6 additions & 1 deletion dist/hotkeys.js
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,12 @@
// 将组合快捷键拆分为数组
keys = multipleKeys[i].split('+'); // 记录每个组合键中的修饰键的键码 返回数组

if (keys.length > 1) mods = getMods(_modifier, keys); // 获取除修饰键外的键值key
if (keys.length > 1) {
mods = getMods(_modifier, keys);
} else {
mods = [];
} // 获取除修饰键外的键值key


key = keys[keys.length - 1];
key = key === '*' ? '*' : code(key); // 判断是否传入范围,没有就获取范围
Expand Down
Loading

0 comments on commit b9cde08

Please sign in to comment.