mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 16:27:26 +08:00
23 lines
725 B
C#
23 lines
725 B
C#
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. 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();
|
|
}
|
|
}
|
|
}
|