1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 06:57:39 +08:00

Focus artist textbox on entering song setup if fields are empty

This commit is contained in:
Dean Herbert 2021-03-17 16:57:14 +09:00
parent 26d6f96c4e
commit 5adc675862

View File

@ -56,6 +56,14 @@ namespace osu.Game.Screens.Edit.Setup
item.OnCommit += onCommit;
}
protected override void LoadComplete()
{
base.LoadComplete();
if (string.IsNullOrEmpty(artistTextBox.Current.Value))
GetContainingInputManager().ChangeFocus(artistTextBox);
}
private void onCommit(TextBox sender, bool newText)
{
if (!newText) return;