comparison src/events/SDL_keyboard.c @ 4562:dc9d77a26388

Delete is indeed an unprintable character.
author Sam Lantinga <slouken@libsdl.org>
date Wed, 21 Jul 2010 00:00:05 -0700
parents 95352c671a6e
children e2d46c5c7483
comparison
equal deleted inserted replaced
4561:e4b2b7207f79 4562:dc9d77a26388
764 { 764 {
765 SDL_Keyboard *keyboard = &SDL_keyboard; 765 SDL_Keyboard *keyboard = &SDL_keyboard;
766 int posted; 766 int posted;
767 767
768 /* Don't post text events for unprintable characters */ 768 /* Don't post text events for unprintable characters */
769 if (*text < ' ') { 769 if (*text < ' ' || *text == 127) {
770 return 0; 770 return 0;
771 } 771 }
772 772
773 /* Post the event, if desired */ 773 /* Post the event, if desired */
774 posted = 0; 774 posted = 0;