mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-10 14:52:00 +00:00
* Fix backspace on MacOS X (from tjw)
This commit is contained in:
parent
a596185844
commit
b191cc056c
1 changed files with 8 additions and 1 deletions
|
@ -262,7 +262,14 @@ static const char *XLateKey(SDL_keysym *keysym, int *key)
|
|||
//else if (ch >= 'A' && ch <= 'Z')
|
||||
// ch = ch - 'A' + 'a';
|
||||
|
||||
buf[0] = ch;
|
||||
// tjw: translate K_BACKSPACE to ctrl-h for MACOS_X (others?)
|
||||
if (ch == K_BACKSPACE)
|
||||
{
|
||||
*key = 'h' - 'a' + 1;
|
||||
buf[0] = *key;
|
||||
}
|
||||
else
|
||||
buf[0] = ch;
|
||||
}
|
||||
|
||||
return buf;
|
||||
|
|
Loading…
Reference in a new issue