We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2e78c0 commit 40b5377Copy full SHA for 40b5377
core/hostevents_sdl.cpp
@@ -56,7 +56,7 @@ void EventManager::poll_events()
56
case SDL_KEYUP: {
57
// Internal shortcuts to trigger mouse grab, intentionally not
58
// sent to the host.
59
- if (SDL_GetModState() & KMOD_LCTRL && event.key.keysym.sym == SDLK_g) {
+ if (event.key.keysym.sym == SDLK_g && ((SDL_GetModState() & KMOD_LCTRL) == KMOD_CTRL)) {
60
if (event.type == SDL_KEYUP) {
61
toggle_mouse_grab(event.key);
62
}
0 commit comments