Use SDL_iscntrl() call instead of manual code that is doing the same (#8593)
This commit is contained in:
parent
fd91178d7f
commit
0413f6fc49
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 ((unsigned char)*text < ' ' || *text == 127) {
|
if (SDL_iscntrl((int)*text)) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue