if (game_status == GAME_MODE_PLAYING)
return FALSE;
+ // if Shift or right Alt key is pressed, handle key as text input
+ if ((GetKeyModState() & KMOD_TextInput) != KMOD_None)
+ return TRUE;
+
// ignore raw keys as text input when not in text input mode
if (KSYM_RAW(key) && !textinput_status)
return FALSE;
cheat_input[cheat_input_len] = '\0';
#if DEBUG_EVENTS_KEY
- Debug("event:key:special", "'%s' [%d]\n", cheat_input, cheat_input_len);
+ Debug("event:key:special", "'%s' [%d]", cheat_input, cheat_input_len);
#endif
if (game_status == GAME_MODE_MAIN)