]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - vid_glx.c
Whoops, fix some stupidity on my part, should work better.
[xonotic/darkplaces.git] / vid_glx.c
index edcfbe623ce023762b9ee0695c57892525835036..1e5bb3a9b5b748216ef8867c2cea0bd7b0b2d9ae 100644 (file)
--- a/vid_glx.c
+++ b/vid_glx.c
@@ -205,6 +205,14 @@ static int XLateKey(XKeyEvent *ev, char *ascii)
                case XK_KP_Divide: key = K_KP_SLASH; break;
 
                default:
+                       if (keysym < 32 && keysym > 126)
+                               break;
+
+                       if (keysym >= 'A' && keysym <= 'Z')
+                               key = keysym - 'A' + 'a';
+                       else
+                               key = keysym;
+
                        break;
        }