From 0413f6fc49848604c8c6cb719a6dd6c10849dc68 Mon Sep 17 00:00:00 2001 From: Dimitriy Ryazantcev Date: Tue, 21 Nov 2023 18:36:32 +0200 Subject: [PATCH] Use SDL_iscntrl() call instead of manual code that is doing the same (#8593) --- src/events/SDL_keyboard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/events/SDL_keyboard.c b/src/events/SDL_keyboard.c index c8ddf12503..2a92707d34 100644 --- a/src/events/SDL_keyboard.c +++ b/src/events/SDL_keyboard.c @@ -1063,7 +1063,7 @@ int SDL_SendKeyboardText(const char *text) int posted; /* Don't post text events for unprintable characters */ - if ((unsigned char)*text < ' ' || *text == 127) { + if (SDL_iscntrl((int)*text)) { return 0; }