X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Fevents.c;h=f4311bfdee435c6701cc11f3feb8d2342d501cd6;hp=b5f83725334d41688b92f9531853d3a78a1be113;hb=0896ebe9d29a756c7adc005c6b93ff28f2fd396d;hpb=4cd59cef0737229da365e385a8762e681a5e471f diff --git a/src/events.c b/src/events.c index b5f83725..f4311bfd 100644 --- 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 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; @@ -1808,7 +1812,7 @@ static void HandleKeysSpecial(Key key) 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)