This change fixes a regression of commit
888ee049 that causes problems
when handling text input in situations unrelated to the Android screen
keyboard, like entering key shortcuts with upper case letters inside
the level editor on non-Android platforms.
Thanks to Eizzoux for reporting this bug!
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)