Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: unbind keys #82

Merged
merged 1 commit into from
May 18, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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