fix keys getting stuck after windows dialogs

This commit is contained in:
Glenn Maynard
2004-01-26 04:00:52 +00:00
parent dc33cc12bb
commit 4259b5467a
+3 -6
View File
@@ -1259,16 +1259,13 @@ static void HandleSDLEvents()
LOG->Trace("App %s focus (%i%i)", g_bHasFocus? "has":"doesn't have", LOG->Trace("App %s focus (%i%i)", g_bHasFocus? "has":"doesn't have",
i&SDL_APPINPUTFOCUS, i&SDL_APPACTIVE); i&SDL_APPINPUTFOCUS, i&SDL_APPACTIVE);
/* If we lose focus, we may lose input events, especially key releases. */
INPUTFILTER->Reset();
if(g_bHasFocus) if(g_bHasFocus)
BoostAppPri(); BoostAppPri();
else else
{
RestoreAppPri(); RestoreAppPri();
/* If we lose focus, we may lose input events, especially key
* releases. */
INPUTFILTER->Reset();
}
} }
} }
} }