From 0b8d7f458609416370c8488e30f9d440793fb9fa Mon Sep 17 00:00:00 2001 From: divverent Date: Fri, 29 Oct 2010 14:27:07 +0000 Subject: [PATCH] don't translate \0 to \uE000 when receiving that keycode (as it simply is a nonprintable key then) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10565 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=392dbf4d5756cd56b80326aff4f85033a60b4b02 --- keys.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keys.c b/keys.c index d182291c..8fe972c4 100644 --- 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) -- 2.39.2