You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This bug report was migrated from our old Bugzilla tracker.
Reported in version: HG 2.0 Reported for operating system, platform: Windows 7, All
Comments on the original bug report:
On 2012-09-24 22:12:57 +0000, wrote:
On Windows 7 with an Aero theme enabled, if you ALT+TAB out of an SDL2 application, the ALT modifier state (KMOD_LALT is what I used) stays on.
Upon focus gain, (SDL_GetModState() & KMOD_ALT) will always return true.
This is problematic if you wish to capture the ALT key in the application for some purpose (ALT + ENTER to resize), because it thinks the ALT key is already pressed and you may cause an undesired action.
The workaround is to do something like this in the even loop:
case SDL_WINDOWEVENT_FOCUS_LOST:
SDL_SetModState(KMOD_NONE);
break;
This does not occur on Windows XP, or Windows 7 with Aero turned off.
On 2013-05-22 17:33:17 +0000, wrote:
This bug appears to be gone as of hg rev 53df899db00b
The text was updated successfully, but these errors were encountered:
This bug report was migrated from our old Bugzilla tracker.
Reported in version: HG 2.0
Reported for operating system, platform: Windows 7, All
Comments on the original bug report:
On 2012-09-24 22:12:57 +0000, wrote:
On 2013-05-22 17:33:17 +0000, wrote:
The text was updated successfully, but these errors were encountered: