From 04192d972808cbccabcbdb839554704243e13ad2 Mon Sep 17 00:00:00 2001 From: tjw Date: Thu, 7 Dec 2006 23:55:01 +0000 Subject: * (bug 2863) allow DEL key to be binded again. I broke it for bug 2650 thanks to Ben Noordhuis for the fix. git-svn-id: svn://svn.icculus.org/quake3/trunk@1012 edf5b092-35ff-0310-97b2-ce42778d08ea --- code/unix/sdl_glimp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'code/unix') diff --git a/code/unix/sdl_glimp.c b/code/unix/sdl_glimp.c index a24b4eb..73d817f 100644 --- a/code/unix/sdl_glimp.c +++ b/code/unix/sdl_glimp.c @@ -267,8 +267,8 @@ static const char *XLateKey(SDL_keysym *keysym, int *key) //else if (ch >= 'A' && ch <= 'Z') // ch = ch - 'A' + 'a'; - // tjw: translate K_BACKSPACE to ctrl-h for MACOS_X (others?) - if (ch == K_BACKSPACE) + // translate K_BACKSPACE to ctrl-h for MACOS_X (others?) + if (ch == K_BACKSPACE && keysym->sym != SDLK_DELETE) { *key = 'h' - 'a' + 1; buf[0] = *key; -- cgit v1.2.3