mirror of
https://github.com/yawut/SDL.git
synced 2026-08-28 11:45:13 -05:00
Daniel Wyatt to slouken
I also found a bug in the non-printable character fix.
In SDL_keyboard.c:SDL_SendKeyboardText:
if (*text < ' ' || *text == 127) {
needs to be:
if ((unsigned char)*text < ' ' || *text == 127) {
Otherwise bytes >= 128 will be considered non-printable.
This commit is contained in:
@@ -768,7 +768,7 @@ SDL_SendKeyboardText(const char *text)
|
||||
int posted;
|
||||
|
||||
/* Don't post text events for unprintable characters */
|
||||
if (*text < ' ' || *text == 127) {
|
||||
if ((unsigned char)*text < ' ' || *text == 127) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user