From f7c5d7f6856e3981a7355ad9e4fda1e8116f98c9 Mon Sep 17 00:00:00 2001 From: havoc Date: Fri, 25 Nov 2005 01:17:43 +0000 Subject: [PATCH] allow typing characters above 126 git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5825 d7cf8633-e32d-0410-b094-e92efae38249 --- vid_agl.c | 2 +- vid_glx.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vid_agl.c b/vid_agl.c index 12752c35..cbca607a 100644 --- 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; diff --git a/vid_glx.c b/vid_glx.c index 750c01bb..80fa95ab 100644 --- 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') -- 2.39.2