Skip to content

Commit

Permalink
Focus focus not being transferred correctly to parent settings panel …
Browse files Browse the repository at this point in the history
…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
#14345 (comment).
  • Loading branch information
peppy committed Mar 31, 2022
1 parent e8a295a commit 726b49f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion osu.Game/Graphics/UserInterface/FocusedTextBox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public void TakeFocus()
if (!allowImmediateFocus)
return;

Scheduler.Add(() => GetContainingInputManager().ChangeFocus(this), false);
Scheduler.Add(() => GetContainingInputManager().ChangeFocus(this));
}

public new void KillFocus() => base.KillFocus();
Expand Down

0 comments on commit 726b49f

Please sign in to comment.