aboutsummaryrefslogtreecommitdiffstats
path: root/code
diff options
context:
space:
mode:
Diffstat (limited to 'code')
-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++ )