From 4cc89d2855e0184253904afb198cc3d4307939f2 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Thu, 23 Jan 2025 23:44:31 +0100 Subject: [PATCH] fixed handling keys when pressed together with Shift or right Alt key --- src/events.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.34.1