修复设置快捷键时的处理逻辑问题

This commit is contained in:
lyswhut
2022-06-11 18:52:52 +08:00
parent bb8509a21c
commit 0704a4ad12
4 changed files with 61 additions and 56 deletions
+1 -1
View File
@@ -107,7 +107,7 @@ const unbindKey = () => {
const clearDownKeys = () => {
let keys = Array.from(downKeys)
for (let i = keys.length - 1; i > -1; i--) {
handleSendEvent(keys[i], 'up')
handleSendEvent(keys[i], keys[i], 'up', null, [keys[i]])
}
downKeys.clear()
}