Skip to content

Commit 7ca2a14

Browse files
committed
🐛 添加快捷键执行后的队列清空逻辑
1 parent 887bf68 commit 7ca2a14

File tree

1 file changed

+2
-0
lines changed
  • app/src/core/service/controlService/shortcutKeysEngine

1 file changed

+2
-0
lines changed

app/src/core/service/controlService/shortcutKeysEngine/KeyBinds.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,8 @@ class _Bind {
140140
private check() {
141141
if (matchEmacsKey(this.key, this.events.arrayList)) {
142142
this.onPress();
143+
// 执行了快捷键之后,清空队列
144+
this.events.clear();
143145
}
144146
}
145147

0 commit comments

Comments
 (0)