src/events/SDL_keyboard.c
changeset 4562 dc9d77a26388
parent 4560 95352c671a6e
child 4565 e2d46c5c7483
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;