Jump to textfield in password prompt.

This commit is contained in:
HenrytheSlav
2016-06-26 15:44:19 +02:00
parent 3356e6a82d
commit d19c9eadb0

View File

@@ -113,6 +113,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
passwordField = panel.GetOrNull<PasswordFieldWidget>("PASSWORD");
if (passwordField != null)
{
passwordField.TakeKeyboardFocus();
passwordField.Text = orderManager.Password;
passwordField.IsVisible = () => orderManager.AuthenticationFailed;
var passwordLabel = widget.Get<LabelWidget>("PASSWORD_LABEL");