projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c750771
)
fixed handling keys when pressed together with Ctrl or Meta key
author
Holger Schemel
<info@artsoft.org>
Thu, 23 Jan 2025 22:36:39 +0000
(23:36 +0100)
committer
Holger Schemel
<info@artsoft.org>
Thu, 23 Jan 2025 22:37:08 +0000
(23:37 +0100)
src/events.c
patch
|
blob
|
history
diff --git
a/src/events.c
b/src/events.c
index b54b1ca9494c2e773712c407056b8d98f6d7bc4e..a9dfd2cd63c73af91761b5b140c43f1ef090fbf3 100644
(file)
--- 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;