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:
parent
26d6f96c4e
commit
5adc675862
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user