1
0
mirror of https://github.com/ppy/osu.git synced 2026-06-07 20:44:47 +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
Unverified
parent bb2da97096
commit d877536dc0
@@ -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)