// Copyright (c) ppy Pty Ltd . Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. #nullable disable using osu.Framework.Input.Events; using osu.Game.Graphics.UserInterface; namespace osu.Game.Overlays { public partial class SettingsSearchTextBox : SeekLimitedSearchTextBox { protected override void OnFocus(FocusEvent e) { base.OnFocus(e); // 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(); } } }