Skip to content

Commit 830e850

Browse files
committed
fix: fix key combination trigger issue. (#426) (#433) (#432)
1 parent edab10f commit 830e850

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

dist/hotkeys.common.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ function dispatch(event, element) {
474474
_downKeysCurrent.push(code(keyShortcut[a]));
475475
}
476476

477-
if (_downKeysCurrent.sort().join('') === _downKeys.slice().sort().join('')) {
477+
if (_downKeysCurrent.sort().join('') === _downKeys.sort().join('')) {
478478
// 找到处理内容
479479
eventHandler(event, record, scope, element);
480480
}

dist/hotkeys.common.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/hotkeys.esm.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ function dispatch(event, element) {
472472
_downKeysCurrent.push(code(keyShortcut[a]));
473473
}
474474

475-
if (_downKeysCurrent.sort().join('') === _downKeys.slice().sort().join('')) {
475+
if (_downKeysCurrent.sort().join('') === _downKeys.sort().join('')) {
476476
// 找到处理内容
477477
eventHandler(event, record, scope, element);
478478
}

dist/hotkeys.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@
478478
_downKeysCurrent.push(code(keyShortcut[a]));
479479
}
480480

481-
if (_downKeysCurrent.sort().join('') === _downKeys.slice().sort().join('')) {
481+
if (_downKeysCurrent.sort().join('') === _downKeys.sort().join('')) {
482482
// 找到处理内容
483483
eventHandler(event, record, scope, element);
484484
}

0 commit comments

Comments
 (0)