mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-05 19:08:12 +00:00
SDL_SendKeyboardText: remove workaround from 1e12d7c
, fix use of iscntrl
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user