From f1ba8a877fe7b55a587f4fcea4bdf43f51e01911 Mon Sep 17 00:00:00 2001 From: divverent Date: Mon, 21 May 2007 21:14:34 +0000 Subject: [PATCH] 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 --- keys.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- 2.39.2