* Prevent ~ from generating a character

* Fix backspace on OS X (I hope)
This commit is contained in:
Tim Angus 2008-08-22 11:16:35 +00:00
parent 953200cafc
commit c1befbda75
1 changed files with 6 additions and 0 deletions

View File

@ -234,12 +234,18 @@ static const char *IN_TranslateSDLToQ3Key( SDL_keysym *keysym,
*key = CTRL('h');
*buf = *key;
}
else
*buf = ch;
break;
default: *buf = ch; break;
}
}
// Never allow a '~' SE_CHAR event to be generated
if( *key == '~' )
*buf = '\0';
if( in_keyboardDebug->integer )
IN_PrintKey( keysym, *key, down );