From 17ea6e1ec2353dd26b97c16f2b1076e0848d04fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Deniz=20Ay=C4=B1kol?= Date: Thu, 24 Jul 2014 14:59:11 +0300 Subject: [PATCH] Make lobby chat field have keyboard focus by default. --- OpenRA.Mods.RA/Widgets/Logic/LobbyLogic.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/OpenRA.Mods.RA/Widgets/Logic/LobbyLogic.cs b/OpenRA.Mods.RA/Widgets/Logic/LobbyLogic.cs index 74af31fbeb..4b089f42a1 100644 --- a/OpenRA.Mods.RA/Widgets/Logic/LobbyLogic.cs +++ b/OpenRA.Mods.RA/Widgets/Logic/LobbyLogic.cs @@ -483,6 +483,8 @@ namespace OpenRA.Mods.RA.Widgets.Logic var chatLabel = lobby.Get("LABEL_CHATTYPE"); var chatTextField = lobby.Get("CHAT_TEXTFIELD"); + chatTextField.TakeKeyboardFocus(); + chatTextField.OnEnterKey = () => { if (chatTextField.Text.Length == 0)