1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-30 03:02:54 +08:00

Select all on focus when popover just open

This commit is contained in:
jkh675 2024-12-21 21:26:56 +08:00
parent 5f617e6697
commit 9a0d9641ab

View File

@ -178,13 +178,14 @@ namespace osu.Game.Overlays.Settings.Sections
public Action<string> Rename { get; init; }
private readonly FocusedTextBox textBox;
private readonly RoundedButton renameButton;
public RenameSkinPopover()
{
AutoSizeAxes = Axes.Both;
Origin = Anchor.TopCentre;
RoundedButton renameButton;
Child = new FillFlowContainer
{
Direction = FillDirection.Vertical,
@ -198,6 +199,7 @@ namespace osu.Game.Overlays.Settings.Sections
PlaceholderText = @"Skin name",
FontSize = OsuFont.DEFAULT_FONT_SIZE,
RelativeSizeAxes = Axes.X,
SelectAllOnFocus = true,
},
renameButton = new RoundedButton
{
@ -231,7 +233,6 @@ namespace osu.Game.Overlays.Settings.Sections
}
}
public partial class ExportSkinButton : SettingsButton
{
[Resolved]