1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 08:52:55 +08:00

Merge pull request #6574 from Joehuu/fix-registration-textbox-focus

Fix registration textboxes always focusing after pressing escape
This commit is contained in:
Dean Herbert 2019-10-23 12:18:08 +09:00 committed by GitHub
commit 75beba66d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -138,18 +138,13 @@ 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();
if (host?.OnScreenKeyboardOverlapsGameWindow != true)
focusNextTextbox();
}
private void performRegistration()