Skip to content

Commit

Permalink
* Prevent ~ from generating a character
Browse files Browse the repository at this point in the history
* Fix backspace on OS X (I hope)
  • Loading branch information
timangus committed Aug 22, 2008
1 parent 953200c commit c1befbd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions code/sdl/sdl_input.c
Expand Up @@ -234,12 +234,18 @@ static const char *IN_TranslateSDLToQ3Key( SDL_keysym *keysym,
*key = CTRL('h');
*buf = *key;
}
else
*buf = ch;
break;

default: *buf = ch; break;
}
}

// Never allow a '~' SE_CHAR event to be generated
if( *key == '~' )
*buf = '\0';

if( in_keyboardDebug->integer )
IN_PrintKey( keysym, *key, down );

Expand Down

0 comments on commit c1befbd

Please sign in to comment.