From 726b49fdf3e170d67a9d07e54de12e1df0c741f0 Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Thu, 31 Mar 2022 15:19:34 +0900 Subject: [PATCH] Focus focus not being transferred correctly to parent settings panel on exiting nested panel Seemingly harmless schedule delay ommission meant that the textbox may not be in a state it can handle the incoming focus event. Regressed in https://github.com/ppy/osu/pull/14345#discussion_r690697501. --- osu.Game/Graphics/UserInterface/FocusedTextBox.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osu.Game/Graphics/UserInterface/FocusedTextBox.cs b/osu.Game/Graphics/UserInterface/FocusedTextBox.cs index 578ff3c618..d3a76a0f1a 100644 --- a/osu.Game/Graphics/UserInterface/FocusedTextBox.cs +++ b/osu.Game/Graphics/UserInterface/FocusedTextBox.cs @@ -28,7 +28,7 @@ namespace osu.Game.Graphics.UserInterface if (!allowImmediateFocus) return; - Scheduler.Add(() => GetContainingInputManager().ChangeFocus(this), false); + Scheduler.Add(() => GetContainingInputManager().ChangeFocus(this)); } public new void KillFocus() => base.KillFocus();