From: divverent Date: Tue, 7 Mar 2017 18:33:54 +0000 (+0000) Subject: Chat: accept K_KP_ENTER to end chat entry too. X-Git-Tag: xonotic-v0.8.5~88^2~4 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=2ca2a9595705a793c0f643c2f4fe13f1b8cf4b69;p=xonotic%2Fdarkplaces.git Chat: accept K_KP_ENTER to end chat entry too. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12323 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/keys.c b/keys.c index 79d633ba..d233471b 100644 --- a/keys.c +++ b/keys.c @@ -1198,7 +1198,7 @@ static void Key_Message (int key, int ascii) { char vabuf[1024]; - if (key == K_ENTER || ascii == 10 || ascii == 13) + if (key == K_ENTER || key == K_KP_ENTER || ascii == 10 || ascii == 13) { if(chat_mode < 0) Cmd_ExecuteString(chat_buffer, src_command, true); // not Cbuf_AddText to allow semiclons in args; however, this allows no variables then. Use aliases!