Tab doesn't autoselect the chatbox when the debug console is open

This commit is contained in:
Joonas Rikkonen
2017-07-26 17:21:11 +03:00
parent 6faf658ae0
commit bcb0dbfa90

View File

@@ -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)
{