]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
make ASCII 10 and ASCII 13 terminate messagemode too (fixes Ctrl-J, Ctrl-M, Num-Enter)
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 21 May 2007 21:14:34 +0000 (21:14 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 21 May 2007 21:14:34 +0000 (21:14 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7329 d7cf8633-e32d-0410-b094-e92efae38249

keys.c

diff --git a/keys.c b/keys.c
index d0d2dd286ec5df682cd3f7d6d38c2ded64573e35..eb393826af02d1aafdd4fdcf93f6b9b9c845bd08 100644 (file)
--- a/keys.c
+++ b/keys.c
@@ -510,7 +510,7 @@ static void
 Key_Message (int key, char ascii)
 {
 
 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));
 
        {
                Cmd_ForwardStringToServer(va("%s %s", chat_team ? "say_team" : "say ", chat_buffer));