From f7b8641a76bdf60a9ebadcae5c7b67fd3a3401b8 Mon Sep 17 00:00:00 2001 From: tma Date: Fri, 22 Aug 2008 11:41:54 +0000 Subject: * Really fix backspace on OS X (I hope) git-svn-id: svn://svn.icculus.org/quake3/trunk@1454 edf5b092-35ff-0310-97b2-ce42778d08ea --- code/sdl/sdl_input.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'code/sdl') diff --git a/code/sdl/sdl_input.c b/code/sdl/sdl_input.c index 23b20b4..de82d5d 100644 --- a/code/sdl/sdl_input.c +++ b/code/sdl/sdl_input.c @@ -169,7 +169,7 @@ static const char *IN_TranslateSDLToQ3Key( SDL_keysym *keysym, case SDLK_F14: *key = K_F14; break; case SDLK_F15: *key = K_F15; break; - case SDLK_BACKSPACE: *key = K_BACKSPACE; break; // ctrl-h + case SDLK_BACKSPACE: *key = K_BACKSPACE; break; case SDLK_KP_PERIOD: *key = K_KP_DEL; break; case SDLK_DELETE: *key = K_DEL; break; case SDLK_PAUSE: *key = K_PAUSE; break; @@ -227,16 +227,15 @@ static const char *IN_TranslateSDLToQ3Key( SDL_keysym *keysym, // So the key marked ~ always drops the console case '~': *key = '~'; break; - case 8: // backspace + case 127: // ASCII delete if( *key != K_DEL ) { // ctrl-h *key = CTRL('h'); *buf = *key; + break; } - else - *buf = ch; - break; + // fallthrough default: *buf = ch; break; } -- cgit v1.2.3