From: Holger Schemel Date: Thu, 23 Jan 2025 22:44:31 +0000 (+0100) Subject: fixed handling keys when pressed together with Shift or right Alt key X-Git-Tag: 4.4.0.3~4 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=4cc89d2855e0184253904afb198cc3d4307939f2;p=rocksndiamonds.git fixed handling keys when pressed together with Shift or right Alt key --- diff --git a/src/events.c b/src/events.c index a9dfd2cd..f037befc 100644 --- a/src/events.c +++ b/src/events.c @@ -1417,8 +1417,8 @@ static boolean checkTextInputKey(Key key) 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) + // if Shift or right Alt key is pressed, handle printable keys as text input + if ((GetKeyModState() & KMOD_TextInput) != KMOD_None && KSYM_PRINTABLE(key)) return TRUE; // ignore raw keys as text input when not in text input mode