mirror of
https://github.com/ppy/osu
synced 2024-12-24 15:53:37 +00:00
Automatically focus name textbox upon add preset popover open
This commit is contained in:
parent
159d3b032c
commit
ca1b4689cb
@ -84,6 +84,13 @@ namespace osu.Game.Overlays.Mods
|
||||
createButton.TextColour = colourProvider.Background6;
|
||||
}
|
||||
|
||||
protected override void LoadComplete()
|
||||
{
|
||||
base.LoadComplete();
|
||||
|
||||
ScheduleAfterChildren(() => GetContainingInputManager().ChangeFocus(nameTextBox));
|
||||
}
|
||||
|
||||
private void tryCreatePreset()
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(nameTextBox.Current.Value))
|
||||
|
Loading…
Reference in New Issue
Block a user