|
本帖最后由 KOF2112 于 2024-10-13 07:40 编辑
https://github.com/visualboyadvance-m/visualboyadvance-m
[Input] Reset keyboard tracking on focus loss
When pressing Alt+Tab, the "Alt" and "Tab" keys were considered in the
"pressed" state until the user pressed them again because the window is
no longer receiving keyboard events. This resulted in some shortcuts no
longer working, since "Alt" was always in the pressed state. This
changes the keyboard tracking to be reset when the application loses
focus, fixing the issue.
This change also adds tests for the keyboard tracking. |
|