mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 09:27:29 +08:00
Only run "select all on focus" behaviour on desktop platforms
This commit is contained in:
parent
c7bc8e6865
commit
39abb8e408
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user