aboutsummaryrefslogtreecommitdiffstats
path: root/code/unix
diff options
context:
space:
mode:
authoricculus <icculus@edf5b092-35ff-0310-97b2-ce42778d08ea>2005-09-04 16:40:55 +0000
committericculus <icculus@edf5b092-35ff-0310-97b2-ce42778d08ea>2005-09-04 16:40:55 +0000
commita4dac392e152fef5c6a5d9fed1aac25362cda86e (patch)
tree71782a27ebae97b4f38798b1ebbe9405b9d7ce7a /code/unix
parent267cfada59cdde1442d32c0f76d0a05e37ec505a (diff)
downloadioquake3-aero-a4dac392e152fef5c6a5d9fed1aac25362cda86e.tar.gz
ioquake3-aero-a4dac392e152fef5c6a5d9fed1aac25362cda86e.zip
Fixed all lowercase input (Bugzilla #2364).
git-svn-id: svn://svn.icculus.org/quake3/trunk@83 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/unix')
-rw-r--r--code/unix/sdl_glimp.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/code/unix/sdl_glimp.c b/code/unix/sdl_glimp.c
index 25b08bb..19c83cb 100644
--- a/code/unix/sdl_glimp.c
+++ b/code/unix/sdl_glimp.c
@@ -221,8 +221,13 @@ static const char *XLateKey(SDL_keysym *keysym, int *key)
char ch = (char) keysym->unicode;
if (ch == '~')
*key = '~'; // console HACK
- else if (ch >= 'A' && ch <= 'Z')
- ch = ch - 'A' + 'a';
+
+ // The X11 driver converts to lowercase, but apparently we shouldn't.
+ // There's possibly somewhere else where they covert back. Passing
+ // uppercase to the engine works fine and fixes all-lower input.
+ // (https://bugzilla.icculus.org/show_bug.cgi?id=2364) --ryan.
+ //else if (ch >= 'A' && ch <= 'Z')
+ // ch = ch - 'A' + 'a';
buf[0] = ch;
}