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:
parent
5f617e6697
commit
9a0d9641ab
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user