From bcb0dbfa9034a0dc92ec986072d206ec8e227aa2 Mon Sep 17 00:00:00 2001 From: Joonas Rikkonen Date: Wed, 26 Jul 2017 17:21:11 +0300 Subject: [PATCH] Tab doesn't autoselect the chatbox when the debug console is open --- .../BarotraumaShared/Source/Networking/NetworkMember.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Barotrauma/BarotraumaShared/Source/Networking/NetworkMember.cs b/Barotrauma/BarotraumaShared/Source/Networking/NetworkMember.cs index 27163d75d..41f84b7e5 100644 --- a/Barotrauma/BarotraumaShared/Source/Networking/NetworkMember.cs +++ b/Barotrauma/BarotraumaShared/Source/Networking/NetworkMember.cs @@ -215,7 +215,9 @@ namespace Barotrauma.Networking } } - if (PlayerInput.KeyHit(InputType.Chat) && chatMsgBox.Visible) + //tab doesn't autoselect the chatbox when debug console is open, + //because tab is used for autocompleting console commands + if (PlayerInput.KeyHit(InputType.Chat) && chatMsgBox.Visible && !DebugConsole.IsOpen) { if (chatMsgBox.Selected) {