mirror of
https://github.com/ppy/osu.git
synced 2025-03-15 22:27:46 +08:00
Select all text content in SearchTextBox
on focus
This commit is contained in:
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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user