Reset the keyboard state when launching a message box (thanks, Sean!).
authorRyan C. Gordon <icculus@icculus.org>
Tue, 26 May 2015 20:49:27 -0400
changeset 9642 cd237569d0f6
parent 9641 425c1100b496
child 9643 413b222c4b64
Reset the keyboard state when launching a message box (thanks, Sean!). Otherwise, pressed keys get stuck. Fixes Bugzilla #2776.
src/video/SDL_video.c
--- a/src/video/SDL_video.c	Tue May 26 20:40:00 2015 -0400
+++ b/src/video/SDL_video.c	Tue May 26 20:49:27 2015 -0400
@@ -3418,6 +3418,7 @@
     SDL_CaptureMouse(SDL_FALSE);
     SDL_SetRelativeMouseMode(SDL_FALSE);
     show_cursor_prev = SDL_ShowCursor(1);
+    SDL_ResetKeyboard();
 
     if (!buttonid) {
         buttonid = &dummybutton;