Merge pull request #6053 from deniz1a/chat-focus

Closes #4722
This commit is contained in:
Matthias Mailänder
2014-07-24 22:40:42 +02:00

View File

@@ -483,6 +483,8 @@ namespace OpenRA.Mods.RA.Widgets.Logic
var chatLabel = lobby.Get<LabelWidget>("LABEL_CHATTYPE");
var chatTextField = lobby.Get<TextFieldWidget>("CHAT_TEXTFIELD");
chatTextField.TakeKeyboardFocus();
chatTextField.OnEnterKey = () =>
{
if (chatTextField.Text.Length == 0)