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~247 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c0939c5bd68e5c53b653a998e33d74e1abe6bfa6;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 ::stable-branch::merge=442772ff530cb93073f2ea7207de762ec74d34ce --- 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