allow typing characters above 126
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 25 Nov 2005 01:17:43 +0000 (01:17 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 25 Nov 2005 01:17:43 +0000 (01:17 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5825 d7cf8633-e32d-0410-b094-e92efae38249

vid_agl.c
vid_glx.c

index 12752c3..cbca607 100644 (file)
--- a/vid_agl.c
+++ b/vid_agl.c
@@ -514,7 +514,7 @@ static void Handle_Key(unsigned char charcode, qboolean keypressed)
                                keycode = charcode + ('a' - 'A');  // lowercase it
                                ascii = charcode;
                        }
-                       else if (32 <= charcode && charcode <= 126)
+                       else if (32 <= charcode)
                        {
                                keycode = charcode;
                                ascii = charcode;
index 750c01b..80fa95a 100644 (file)
--- a/vid_glx.c
+++ b/vid_glx.c
@@ -210,7 +210,7 @@ static int XLateKey(XKeyEvent *ev, char *ascii)
                case XK_section:        key = '~'; break;
 
                default:
-                       if (keysym < 32 && keysym > 126)
+                       if (keysym < 32)
                                break;
 
                        if (keysym >= 'A' && keysym <= 'Z')