projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed level editor key shortcuts (broken by regression)
[rocksndiamonds.git]
/
src
/
events.c
diff --git
a/src/events.c
b/src/events.c
index 2678fa28b94c227855bd4f772ae5bcc57615f31c..834b4232b28ccbe96c7360931b52c2d829c7404f 100644
(file)
--- a/
src/events.c
+++ b/
src/events.c
@@
-1382,7
+1382,12
@@
static void HandleButtonOrFinger(int mx, int my, int button)
static boolean checkTextInputKey(Key key)
{
static boolean checkTextInputKey(Key key)
{
- return (textinput_status && KSYM_PRINTABLE(key));
+ // when playing, only handle raw key events and ignore text input
+ if (game_status == GAME_MODE_PLAYING)
+ return FALSE;
+
+ // else handle all printable keys as text input
+ return KSYM_PRINTABLE(key);
}
void HandleTextEvent(TextEvent *event)
}
void HandleTextEvent(TextEvent *event)