Skip to content

Commit

Permalink
fix: fix key combination trigger issue. (#426) (#433) (#432)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Jul 2, 2023
1 parent edab10f commit 830e850
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion dist/hotkeys.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ function dispatch(event, element) {
_downKeysCurrent.push(code(keyShortcut[a]));
}

if (_downKeysCurrent.sort().join('') === _downKeys.slice().sort().join('')) {
if (_downKeysCurrent.sort().join('') === _downKeys.sort().join('')) {
// 找到处理内容
eventHandler(event, record, scope, element);
}
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.

2 changes: 1 addition & 1 deletion dist/hotkeys.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ function dispatch(event, element) {
_downKeysCurrent.push(code(keyShortcut[a]));
}

if (_downKeysCurrent.sort().join('') === _downKeys.slice().sort().join('')) {
if (_downKeysCurrent.sort().join('') === _downKeys.sort().join('')) {
// 找到处理内容
eventHandler(event, record, scope, element);
}
Expand Down
2 changes: 1 addition & 1 deletion dist/hotkeys.js
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@
_downKeysCurrent.push(code(keyShortcut[a]));
}

if (_downKeysCurrent.sort().join('') === _downKeys.slice().sort().join('')) {
if (_downKeysCurrent.sort().join('') === _downKeys.sort().join('')) {
// 找到处理内容
eventHandler(event, record, scope, element);
}
Expand Down
Loading

0 comments on commit 830e850

Please sign in to comment.