diff --git a/OpenRA.Mods.Common/Widgets/Logic/Lobby/LobbyLogic.cs b/OpenRA.Mods.Common/Widgets/Logic/Lobby/LobbyLogic.cs index f9b886e897..b4d03cc9fd 100644 --- a/OpenRA.Mods.Common/Widgets/Logic/Lobby/LobbyLogic.cs +++ b/OpenRA.Mods.Common/Widgets/Logic/Lobby/LobbyLogic.cs @@ -523,9 +523,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic chatLabel = lobby.Get("LABEL_CHATTYPE"); var chatTextField = lobby.Get("CHAT_TEXTFIELD"); - chatTextField.TakeKeyboardFocus(); - chatTextField.OnEnterKey = () => { if (chatTextField.Text.Length == 0) @@ -538,6 +536,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic chatTextField.Text = ""; return true; }; + chatTextField.OnTabKey = () => { var previousText = chatTextField.Text; @@ -550,6 +549,8 @@ namespace OpenRA.Mods.Common.Widgets.Logic return true; }; + chatTextField.OnEscKey = () => { chatTextField.Text = ""; return true; }; + chatPanel = lobby.Get("CHAT_DISPLAY"); chatTemplate = chatPanel.Get("CHAT_TEMPLATE"); chatPanel.RemoveChildren();