From 1f358f7bb97ec5bc736ff02750f3e36d7196cc69 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Thu, 23 Jan 2025 23:36:39 +0100 Subject: [PATCH] fixed handling keys when pressed together with Ctrl or Meta key --- src/events.c | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 2.34.1