]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
don't translate \0 to \uE000 when receiving that keycode (as it simply is a nonprinta...
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 29 Oct 2010 14:27:07 +0000 (14:27 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 29 Oct 2010 14:27:07 +0000 (14:27 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10565 d7cf8633-e32d-0410-b094-e92efae38249

keys.c

diff --git a/keys.c b/keys.c
index d182291c1958b8abdacb0ac12afbb57f4757d156..8fe972c4d750656f1bcb298512a35dbf06a9433c 100644 (file)
--- a/keys.c
+++ b/keys.c
@@ -1203,7 +1203,7 @@ Key_Message (int key, int ascii)
        }
 
        // ctrl+key generates an ascii value < 32 and shows a char from the charmap
-       if (ascii < 32 && utf8_enable.integer)
+       if (ascii > 0 && ascii < 32 && utf8_enable.integer)
                ascii = 0xE000 + ascii;
 
        if (chat_bufferlen == sizeof (chat_buffer) - 1)