Focus password text box on popover display

This commit is contained in:
Dean Herbert 2021-07-13 16:34:56 +09:00
parent 5a2667ae89
commit 6409a518db

View File

@ -357,11 +357,11 @@ namespace osu.Game.Screens.OnlinePlay.Lounge.Components
this.room = room;
}
private OsuPasswordTextBox passwordTextbox;
[BackgroundDependencyLoader]
private void load(OsuColour colours)
{
OsuPasswordTextBox passwordTextbox;
Child = new FillFlowContainer
{
Margin = new MarginPadding(10),
@ -383,6 +383,13 @@ namespace osu.Game.Screens.OnlinePlay.Lounge.Components
}
};
}
protected override void LoadComplete()
{
base.LoadComplete();
GetContainingInputManager().ChangeFocus(passwordTextbox);
}
}
}
}