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 9642cd237569d0f6
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
     1.1 --- a/src/video/SDL_video.c	Tue May 26 20:40:00 2015 -0400
     1.2 +++ b/src/video/SDL_video.c	Tue May 26 20:49:27 2015 -0400
     1.3 @@ -3418,6 +3418,7 @@
     1.4      SDL_CaptureMouse(SDL_FALSE);
     1.5      SDL_SetRelativeMouseMode(SDL_FALSE);
     1.6      show_cursor_prev = SDL_ShowCursor(1);
     1.7 +    SDL_ResetKeyboard();
     1.8  
     1.9      if (!buttonid) {
    1.10          buttonid = &dummybutton;