mirror of
https://github.com/ioquake/ioq3.git
synced 2024-11-10 15:21:35 +00:00
* (bug 2863) allow DEL key to be binded again. I broke it for bug 2650
thanks to Ben Noordhuis for the fix.
This commit is contained in:
parent
bd9e7c4b8f
commit
f03d8857e8
1 changed files with 2 additions and 2 deletions
|
@ -267,8 +267,8 @@ static const char *XLateKey(SDL_keysym *keysym, int *key)
|
||||||
//else if (ch >= 'A' && ch <= 'Z')
|
//else if (ch >= 'A' && ch <= 'Z')
|
||||||
// ch = ch - 'A' + 'a';
|
// ch = ch - 'A' + 'a';
|
||||||
|
|
||||||
// tjw: translate K_BACKSPACE to ctrl-h for MACOS_X (others?)
|
// translate K_BACKSPACE to ctrl-h for MACOS_X (others?)
|
||||||
if (ch == K_BACKSPACE)
|
if (ch == K_BACKSPACE && keysym->sym != SDLK_DELETE)
|
||||||
{
|
{
|
||||||
*key = 'h' - 'a' + 1;
|
*key = 'h' - 'a' + 1;
|
||||||
buf[0] = *key;
|
buf[0] = *key;
|
||||||
|
|
Loading…
Reference in a new issue