aboutsummaryrefslogtreecommitdiffstats
path: root/code/unix
diff options
context:
space:
mode:
authortma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2006-04-14 20:02:11 +0000
committertma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2006-04-14 20:02:11 +0000
commitad4228fdfd11774c792fb564fe5ec5e4023de29f (patch)
tree49fd56b5e74b4d14bd55913dc16e323265b4cbba /code/unix
parent7c9369460fc91c066780b1f55f125c7ddb0905f9 (diff)
downloadioquake3-aero-ad4228fdfd11774c792fb564fe5ec5e4023de29f.tar.gz
ioquake3-aero-ad4228fdfd11774c792fb564fe5ec5e4023de29f.zip
* Fix backspace on MacOS X (from tjw)
git-svn-id: svn://svn.icculus.org/quake3/trunk@699 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/unix')
-rw-r--r--code/unix/sdl_glimp.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/code/unix/sdl_glimp.c b/code/unix/sdl_glimp.c
index 29fe0ed..e855241 100644
--- a/code/unix/sdl_glimp.c
+++ b/code/unix/sdl_glimp.c
@@ -262,7 +262,14 @@ static const char *XLateKey(SDL_keysym *keysym, int *key)
//else if (ch >= 'A' && ch <= 'Z')
// ch = ch - 'A' + 'a';
- buf[0] = ch;
+ // tjw: translate K_BACKSPACE to ctrl-h for MACOS_X (others?)
+ if (ch == K_BACKSPACE)
+ {
+ *key = 'h' - 'a' + 1;
+ buf[0] = *key;
+ }
+ else
+ buf[0] = ch;
}
return buf;