From: divverent Date: Mon, 21 May 2007 21:14:34 +0000 (+0000) Subject: make ASCII 10 and ASCII 13 terminate messagemode too (fixes Ctrl-J, Ctrl-M, Num-Enter) X-Git-Tag: xonotic-v0.1.0preview~3126 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f1ba8a877fe7b55a587f4fcea4bdf43f51e01911;p=xonotic%2Fdarkplaces.git make ASCII 10 and ASCII 13 terminate messagemode too (fixes Ctrl-J, Ctrl-M, Num-Enter) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7329 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/keys.c b/keys.c index d0d2dd28..eb393826 100644 --- a/keys.c +++ b/keys.c @@ -510,7 +510,7 @@ static void Key_Message (int key, char ascii) { - if (key == K_ENTER) + if (key == K_ENTER || ascii == 10 || ascii == 13) { Cmd_ForwardStringToServer(va("%s %s", chat_team ? "say_team" : "say ", chat_buffer));