diff --git a/src/events/SDL_keyboard.c b/src/events/SDL_keyboard.c index a5d1026cd..29b96a707 100644 --- a/src/events/SDL_keyboard.c +++ b/src/events/SDL_keyboard.c @@ -766,7 +766,7 @@ SDL_SendKeyboardText(const char *text) int posted; /* Don't post text events for unprintable characters */ - if (*text < ' ') { + if (*text < ' ' || *text == 127) { return 0; }