From d19c9eadb082cf435ac6b5104cd4f25a0accd9d4 Mon Sep 17 00:00:00 2001 From: HenrytheSlav Date: Sun, 26 Jun 2016 15:44:19 +0200 Subject: [PATCH] Jump to textfield in password prompt. --- OpenRA.Mods.Common/Widgets/Logic/ConnectionLogic.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/OpenRA.Mods.Common/Widgets/Logic/ConnectionLogic.cs b/OpenRA.Mods.Common/Widgets/Logic/ConnectionLogic.cs index 86259b7916..a1bdde2689 100644 --- a/OpenRA.Mods.Common/Widgets/Logic/ConnectionLogic.cs +++ b/OpenRA.Mods.Common/Widgets/Logic/ConnectionLogic.cs @@ -113,6 +113,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic passwordField = panel.GetOrNull("PASSWORD"); if (passwordField != null) { + passwordField.TakeKeyboardFocus(); passwordField.Text = orderManager.Password; passwordField.IsVisible = () => orderManager.AuthenticationFailed; var passwordLabel = widget.Get("PASSWORD_LABEL");