mirror of
https://github.com/ppy/osu.git
synced 2025-02-06 21:52:58 +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; }
|
public Action<string> Rename { get; init; }
|
||||||
|
|
||||||
private readonly FocusedTextBox textBox;
|
private readonly FocusedTextBox textBox;
|
||||||
private readonly RoundedButton renameButton;
|
|
||||||
|
|
||||||
public RenameSkinPopover()
|
public RenameSkinPopover()
|
||||||
{
|
{
|
||||||
AutoSizeAxes = Axes.Both;
|
AutoSizeAxes = Axes.Both;
|
||||||
Origin = Anchor.TopCentre;
|
Origin = Anchor.TopCentre;
|
||||||
|
|
||||||
|
RoundedButton renameButton;
|
||||||
|
|
||||||
Child = new FillFlowContainer
|
Child = new FillFlowContainer
|
||||||
{
|
{
|
||||||
Direction = FillDirection.Vertical,
|
Direction = FillDirection.Vertical,
|
||||||
@ -198,6 +199,7 @@ namespace osu.Game.Overlays.Settings.Sections
|
|||||||
PlaceholderText = @"Skin name",
|
PlaceholderText = @"Skin name",
|
||||||
FontSize = OsuFont.DEFAULT_FONT_SIZE,
|
FontSize = OsuFont.DEFAULT_FONT_SIZE,
|
||||||
RelativeSizeAxes = Axes.X,
|
RelativeSizeAxes = Axes.X,
|
||||||
|
SelectAllOnFocus = true,
|
||||||
},
|
},
|
||||||
renameButton = new RoundedButton
|
renameButton = new RoundedButton
|
||||||
{
|
{
|
||||||
@ -231,7 +233,6 @@ namespace osu.Game.Overlays.Settings.Sections
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public partial class ExportSkinButton : SettingsButton
|
public partial class ExportSkinButton : SettingsButton
|
||||||
{
|
{
|
||||||
[Resolved]
|
[Resolved]
|
||||||
|
Loading…
Reference in New Issue
Block a user