X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Fevents.c;h=834b4232b28ccbe96c7360931b52c2d829c7404f;hp=2678fa28b94c227855bd4f772ae5bcc57615f31c;hb=35da46e44d40c2f2b88e75c8c414e4129d734889;hpb=48df837459ac95beec8491795c40ced3bcf06818 diff --git a/src/events.c b/src/events.c index 2678fa28..834b4232 100644 --- 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) { - 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)