We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 221cd95 + f5582b6 commit ada6e0aCopy full SHA for ada6e0a
1 file changed
src/Menu/OptionsVideoState.cpp
@@ -569,7 +569,7 @@ void OptionsVideoState::resize(int &dX, int &dY)
569
void OptionsVideoState::handle(Action *action)
570
{
571
State::handle(action);
572
- if (action->getDetails()->key.keysym.sym == SDLK_g && (SDL_GetModState() & KMOD_CTRL) != 0)
+ if (action->getDetails()->type == SDL_KEYDOWN && action->getDetails()->key.keysym.sym == SDLK_g && (SDL_GetModState() & KMOD_CTRL) != 0)
573
574
_btnLockMouse->setPressed(Options::captureMouse == SDL_GRAB_ON);
575
}
0 commit comments