SDL_SendKeyboardText: remove workaround from 1e12d7c
, fix use of iscntrl
This commit is contained in:
parent
fea6e7afb1
commit
63d4bd4e57
1 changed files with 1 additions and 1 deletions
|
@ -1063,7 +1063,7 @@ int SDL_SendKeyboardText(const char *text)
|
||||||
int posted;
|
int posted;
|
||||||
|
|
||||||
/* Don't post text events for unprintable characters */
|
/* Don't post text events for unprintable characters */
|
||||||
if (!(*text & 0x80) && SDL_iscntrl(*text)) {
|
if (SDL_iscntrl((unsigned char)*text)) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue