aboutsummaryrefslogtreecommitdiffstats
path: root/code/sdl
diff options
context:
space:
mode:
authortma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2008-08-28 23:08:54 +0000
committertma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2008-08-28 23:08:54 +0000
commit90a190d206f553f7094b86007e8b8b8a9ba6aeac (patch)
tree619a993b8580ef281667e979d0d9ba6c3a21864d /code/sdl
parent02b546e4c58833721921273e8bf482251cd91a98 (diff)
downloadioquake3-aero-90a190d206f553f7094b86007e8b8b8a9ba6aeac.tar.gz
ioquake3-aero-90a190d206f553f7094b86007e8b8b8a9ba6aeac.zip
* 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
Diffstat (limited to 'code/sdl')
-rw-r--r--code/sdl/sdl_input.c4
1 files changed, 2 insertions, 2 deletions
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++ )