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:
Sam Lantinga
2016-10-01 12:17:42 -07:00
parent 1e6e595484
commit 0b576962ca
3 changed files with 6 additions and 7 deletions

View File

@@ -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);