Merge branch 'caps-lock-consistency-fix' into 'master'

Update capslock state on window re-focus

See merge request STJr/SRB2!436
This commit is contained in:
Digiku 2019-01-01 15:05:20 -05:00
commit 5278d1ca20

View file

@ -580,6 +580,8 @@ static void Impl_HandleWindowEvent(SDL_WindowEvent evt)
if (cv_usemouse.value) I_StartupMouse();
}
//else firsttimeonmouse = SDL_FALSE;
capslock = !!( SDL_GetModState() & KMOD_CAPS );// in case CL changes
}
else if (!mousefocus && !kbfocus)
{