From 90a190d206f553f7094b86007e8b8b8a9ba6aeac Mon Sep 17 00:00:00 2001 From: tma Date: Thu, 28 Aug 2008 23:08:54 +0000 Subject: * Better condition to test whether to use the character or the key git-svn-id: svn://svn.icculus.org/quake3/trunk@1462 edf5b092-35ff-0310-97b2-ce42778d08ea --- code/sdl/sdl_input.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'code') diff --git a/code/sdl/sdl_input.c b/code/sdl/sdl_input.c index 878943c..f6c58eb 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++ ) -- cgit v1.2.3