1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-15 15:27:20 +08:00

Select all text content in SearchTextBox on focus

This commit is contained in:
Salman Ahmed 2023-10-29 01:03:38 +03:00
parent bb2da97096
commit d877536dc0

View File

@ -18,6 +18,12 @@ namespace osu.Game.Graphics.UserInterface
PlaceholderText = HomeStrings.SearchPlaceholder;
}
protected override void OnFocus(FocusEvent e)
{
base.OnFocus(e);
SelectAll();
}
public override bool OnPressed(KeyBindingPressEvent<PlatformAction> e)
{
switch (e.Action)