Update capslock state on window re-focus

This commit is contained in:
james 2018-12-26 15:49:57 -08:00
parent 98e46f5b1c
commit 0b857f127f
1 changed files with 2 additions and 0 deletions

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)
{