]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
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 12752c3554e1ce065050f0fb64ca0285add9706a..cbca607a92e575f08592a58333fc23aaede9ab37 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 750c01bb9cc80d05d3a954404c61e2328f927fc4..80fa95abbf7d3cf69df929a394ae6a04b5a1d447 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')