* Really fix backspace on OS X (I hope)

This commit is contained in:
Tim Angus 2008-08-22 11:41:54 +00:00
parent c1befbda75
commit e4e0568641

View file

@ -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;
}
else
*buf = ch;
break;
}
// fallthrough
default: *buf = ch; break;
}