From: divverent Date: Mon, 6 Sep 2010 05:09:53 +0000 (+0000) Subject: make ctrl-key shortcuts in message mode display chars from the charmap even with... X-Git-Tag: xonotic-v0.1.0preview~230^2~40 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=442772ff530cb93073f2ea7207de762ec74d34ce;p=xonotic%2Fdarkplaces.git 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 --- 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