aboutsummaryrefslogtreecommitdiffstats
path: root/code/sdl
diff options
context:
space:
mode:
Diffstat (limited to 'code/sdl')
-rw-r--r--code/sdl/sdl_input.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/code/sdl/sdl_input.c b/code/sdl/sdl_input.c
index 95dc0d4..23b20b4 100644
--- a/code/sdl/sdl_input.c
+++ b/code/sdl/sdl_input.c
@@ -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 );