Fix registration textboxes always focusing after pressing escape

This commit is contained in:
Joehu 2019-10-22 14:40:56 -07:00
parent e7290c433b
commit 8154cc1b16

View File

@ -138,18 +138,12 @@ namespace osu.Game.Overlays.AccountCreation
passwordTextBox.Current.ValueChanged += password => { characterCheckText.ForEach(s => s.Colour = password.NewValue.Length == 0 ? Color4.White : Interpolation.ValueAt(password.NewValue.Length, Color4.OrangeRed, Color4.YellowGreen, 0, 8, Easing.In)); };
}
protected override void Update()
{
base.Update();
if (host?.OnScreenKeyboardOverlapsGameWindow != true && !textboxes.Any(t => t.HasFocus))
focusNextTextbox();
}
public override void OnEntering(IScreen last)
{
base.OnEntering(last);
processingOverlay.Hide();
focusNextTextbox();
}
private void performRegistration()