1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 16:07:24 +08:00

Only run "select all on focus" behaviour on desktop platforms

This commit is contained in:
Salman Ahmed 2023-10-30 11:54:19 +03:00
parent c7bc8e6865
commit 39abb8e408

View File

@ -12,7 +12,11 @@ namespace osu.Game.Overlays
protected override void OnFocus(FocusEvent e)
{
base.OnFocus(e);
SelectAll();
// on mobile platforms, focus is not held by the search text box, and the select all feature
// will not make sense on it, and might annoy the user when they try to focus manually.
if (HoldFocus)
SelectAll();
}
}
}