VortexCoyote / leraine-studio

A cross-platform portable open-source VSRG chart editor written in C++ with SFML.
Mozilla Public License 2.0
14 stars 6 forks source link

Wrong state of Alt key after using Alt+Tab to switch windows #53

Closed UnnamedOrange closed 3 years ago

UnnamedOrange commented 3 years ago

If Alt+Tab is used, the pop of Alt key won't be captured. Consider getting the state of Alt key once it is needed or capturing kill focus message.

Opposite34 commented 3 years ago

There is already a _GainedFocusLastFrame variable in InputModule. So adding a clearKey function once the window regain focus should do the trick.