From 442772ff530cb93073f2ea7207de762ec74d34ce Mon Sep 17 00:00:00 2001 From: divverent Date: Mon, 6 Sep 2010 05:09:53 +0000 Subject: [PATCH] make ctrl-key shortcuts in message mode display chars from the charmap even with utf8 enabled git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10444 d7cf8633-e32d-0410-b094-e92efae38249 --- keys.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/keys.c b/keys.c index 478e8a16..cb99dcad 100644 --- a/keys.c +++ b/keys.c @@ -1011,6 +1011,10 @@ Key_Message (int key, int ascii) return; } + // ctrl+key generates an ascii value < 32 and shows a char from the charmap + if (ascii < 32 && utf8_enable.integer) + ascii = 0xE000 + ascii; + if (chat_bufferlen == sizeof (chat_buffer) - 1) return; // all full -- 2.39.2