projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed key shortcut to start/end game (broken by regression)
[rocksndiamonds.git]
/
src
/
events.c
diff --git
a/src/events.c
b/src/events.c
index 2df4eb7bc3a3a4320f6ed4a36b79419b6e06e093..c18a8a468a3b24ac32d7c21e7b7ecd7573eb1a98 100644
(file)
--- a/
src/events.c
+++ b/
src/events.c
@@
-1386,6
+1386,10
@@
static boolean checkTextInputKey(Key key)
if (game_status == GAME_MODE_PLAYING)
return FALSE;
if (game_status == GAME_MODE_PLAYING)
return FALSE;
+ // ignore raw keys as text input when not in text input mode
+ if (KSYM_RAW(key) && !textinput_status)
+ return FALSE;
+
// else handle all printable keys as text input
return KSYM_PRINTABLE(key);
}
// else handle all printable keys as text input
return KSYM_PRINTABLE(key);
}