Reverted a290a6a (chatbox can be deselected with the chat hotkey again). Closes #262.

This commit is contained in:
Joonas Rikkonen
2018-02-22 11:19:53 +02:00
parent d87c6bd06a
commit 23b59dd70b

View File

@@ -226,7 +226,7 @@ namespace Barotrauma.Networking
//tab doesn't autoselect the chatbox when debug console is open,
//because tab is used for autocompleting console commands
if ((PlayerInput.KeyHit(InputType.Chat) || PlayerInput.KeyHit(InputType.RadioChat)) &&
(!DebugConsole.IsOpen && GUIComponent.KeyboardDispatcher.Subscriber == null) && (Screen.Selected != GameMain.GameScreen || msgBox.Visible))
!DebugConsole.IsOpen && (Screen.Selected != GameMain.GameScreen || msgBox.Visible))
{
if (msgBox.Selected)
{