mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2024-11-10 14:41:42 +00:00
* Prevent ~ from generating a character
* Fix backspace on OS X (I hope)
This commit is contained in:
parent
953200cafc
commit
c1befbda75
1 changed files with 6 additions and 0 deletions
|
@ -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 );
|
||||
|
||||
|
|
Loading…
Reference in a new issue