From: Holger Schemel Date: Thu, 23 Jan 2025 22:36:39 +0000 (+0100) Subject: fixed handling keys when pressed together with Ctrl or Meta key X-Git-Tag: 4.4.0.3~5 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=1f358f7bb97ec5bc736ff02750f3e36d7196cc69;p=rocksndiamonds.git fixed handling keys when pressed together with Ctrl or Meta key --- diff --git a/src/events.c b/src/events.c index b54b1ca9..a9dfd2cd 100644 --- a/src/events.c +++ b/src/events.c @@ -1413,6 +1413,10 @@ static boolean checkTextInputKey(Key key) if (game_status == GAME_MODE_PLAYING) return FALSE; + // if Ctrl or Meta key is pressed, handle raw key events + if ((GetKeyModState() & (KMOD_Control | KMOD_Meta)) != KMOD_None) + return FALSE; + // if Shift or right Alt key is pressed, handle key as text input if ((GetKeyModState() & KMOD_TextInput) != KMOD_None) return TRUE;