From 19eb906706c93e4bac5ef8821137547d1214fbe3 Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Thu, 28 Aug 2008 23:08:54 +0000 Subject: [PATCH] * Better condition to test whether to use the character or the key --- code/sdl/sdl_input.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/sdl/sdl_input.c b/code/sdl/sdl_input.c index 878943c0..f6c58eb6 100644 --- a/code/sdl/sdl_input.c +++ b/code/sdl/sdl_input.c @@ -146,8 +146,8 @@ static qboolean IN_IsConsoleKey( keyNum_t key, const char *buf ) } } - // If key is ASCII, use the character instead - if( key >= K_SPACE && key < K_BACKSPACE ) + // Use the character in preference to the key name + if( *buf ) key = 0; for( i = 0; i < numConsoleKeys; i++ )