mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-17 03:28:57 +00:00
Reset the keyboard when entering a modal loop on Windows
Fixes https://github.com/libsdl-org/SDL/issues/12876
(cherry picked from commit da3c864d4c)
This commit is contained in:
parent
dc30a00a26
commit
825c0c7691
1 changed files with 3 additions and 0 deletions
|
|
@ -1854,6 +1854,9 @@ LRESULT CALLBACK WIN_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPara
|
|||
data->initial_size_rect.bottom = data->window->y + data->window->h;
|
||||
|
||||
SetTimer(hwnd, (UINT_PTR)SDL_IterateMainCallbacks, USER_TIMER_MINIMUM, NULL);
|
||||
|
||||
// Reset the keyboard, as we won't get any key up events during the modal loop
|
||||
SDL_ResetKeyboard();
|
||||
}
|
||||
} break;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue