From 63d4bd4e57ec06f6c6bf8314aa2eb4778a499856 Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Wed, 29 Nov 2023 00:39:24 +0300 Subject: [PATCH] SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl --- 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 0f7adea2d..f01b90a08 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 (!(*text & 0x80) && SDL_iscntrl(*text)) { + if (SDL_iscntrl((unsigned char)*text)) { return 0; }