* (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:
Tony J. White = 2006-12-07 23:55:01 +00:00
parent bd9e7c4b8f
commit f03d8857e8
1 changed files with 2 additions and 2 deletions

View File

@ -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;