Jump to textfield in password prompt.
This commit is contained in:
@@ -113,6 +113,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
|||||||
passwordField = panel.GetOrNull<PasswordFieldWidget>("PASSWORD");
|
passwordField = panel.GetOrNull<PasswordFieldWidget>("PASSWORD");
|
||||||
if (passwordField != null)
|
if (passwordField != null)
|
||||||
{
|
{
|
||||||
|
passwordField.TakeKeyboardFocus();
|
||||||
passwordField.Text = orderManager.Password;
|
passwordField.Text = orderManager.Password;
|
||||||
passwordField.IsVisible = () => orderManager.AuthenticationFailed;
|
passwordField.IsVisible = () => orderManager.AuthenticationFailed;
|
||||||
var passwordLabel = widget.Get<LabelWidget>("PASSWORD_LABEL");
|
var passwordLabel = widget.Get<LabelWidget>("PASSWORD_LABEL");
|
||||||
|
|||||||
Reference in New Issue
Block a user