X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fevents.c;h=834b4232b28ccbe96c7360931b52c2d829c7404f;hb=a2057f4ad5859fea07c4a03cd41a69553ae9fd29;hp=2678fa28b94c227855bd4f772ae5bcc57615f31c;hpb=888ee0497f046c51100416e0a033ec35d77fb45c;p=rocksndiamonds.git 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)