mirror of
https://github.com/encounter/SDL.git
synced 2025-12-21 10:49:12 +00:00
Reset dead keys when the SDL window loses focus, so dead keys pressed in SDL applications don't affect text input into other applications.
This commit is contained in:
@@ -451,6 +451,7 @@ WIN_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
|
||||
|
||||
if (SDL_GetKeyboardFocus() == data->window) {
|
||||
SDL_SetKeyboardFocus(NULL);
|
||||
WIN_ResetDeadKeys();
|
||||
}
|
||||
|
||||
ClipCursor(NULL);
|
||||
|
||||
Reference in New Issue
Block a user