r699 - trunk/code/unix

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Fri Apr 14 16:02:11 EDT 2006


Author: tma
Date: 2006-04-14 16:02:11 -0400 (Fri, 14 Apr 2006)
New Revision: 699

Modified:
   trunk/code/unix/sdl_glimp.c
Log:
* Fix backspace on MacOS X (from tjw)


Modified: trunk/code/unix/sdl_glimp.c
===================================================================
--- trunk/code/unix/sdl_glimp.c	2006-04-14 19:54:56 UTC (rev 698)
+++ trunk/code/unix/sdl_glimp.c	2006-04-14 20:02:11 UTC (rev 699)
@@ -262,7 +262,14 @@
     //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;




More information about the quake3-commits mailing list