Skip to content

Conversation

Aarebecca
Copy link
Contributor

@Aarebecca Aarebecca commented Jul 11, 2024

  • 修复通过快捷键失去焦点后,快捷键失效的问题

此时会记录下 keydown 的按键,但由于失去焦点后, keyup 事件不会采集到,因此存储中始终包含该按键
因此在重新获得焦点后,重置内部按键存储


  • Fixed an issue where the shortcut key failed after losing focus through the shortcut key

At this time, the keydown key is recorded, but the keyup event is not collected after the focus is lost, so the key is always included in the storage
So after regaining focus, reset the internal key storage

issue: #5996

@Aarebecca Aarebecca merged commit adbd9eb into v5 Jul 11, 2024
@Aarebecca Aarebecca deleted the fix/window-blur branch July 11, 2024 09:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant