1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 08:22:56 +08:00

Fix tab key not working

This commit is contained in:
Dean Herbert 2020-09-08 19:51:31 +09:00
parent b55b6e3746
commit c38e7d796a
2 changed files with 14 additions and 4 deletions

View File

@ -3,6 +3,7 @@
using osu.Framework.Allocation; using osu.Framework.Allocation;
using osu.Framework.Graphics; using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.UserInterface; using osu.Framework.Graphics.UserInterface;
using osu.Game.Graphics.UserInterface; using osu.Game.Graphics.UserInterface;
@ -32,6 +33,11 @@ namespace osu.Game.Graphics.UserInterfaceV2
set => Component.Text = value; set => Component.Text = value;
} }
public Container TabbableContentContainer
{
set => Component.TabbableContentContainer = value;
}
[BackgroundDependencyLoader] [BackgroundDependencyLoader]
private void load(OsuColour colours) private void load(OsuColour colours)
{ {

View File

@ -76,22 +76,26 @@ namespace osu.Game.Screens.Edit.Setup
artistTextBox = new LabelledTextBox artistTextBox = new LabelledTextBox
{ {
Label = "Artist", Label = "Artist",
Current = { Value = Beatmap.Value.Metadata.Artist } Current = { Value = Beatmap.Value.Metadata.Artist },
TabbableContentContainer = this
}, },
titleTextBox = new LabelledTextBox titleTextBox = new LabelledTextBox
{ {
Label = "Title", Label = "Title",
Current = { Value = Beatmap.Value.Metadata.Title } Current = { Value = Beatmap.Value.Metadata.Title },
TabbableContentContainer = this
}, },
creatorTextBox = new LabelledTextBox creatorTextBox = new LabelledTextBox
{ {
Label = "Creator", Label = "Creator",
Current = { Value = Beatmap.Value.Metadata.AuthorString } Current = { Value = Beatmap.Value.Metadata.AuthorString },
TabbableContentContainer = this
}, },
difficultyTextBox = new LabelledTextBox difficultyTextBox = new LabelledTextBox
{ {
Label = "Difficulty Name", Label = "Difficulty Name",
Current = { Value = Beatmap.Value.BeatmapInfo.Version } Current = { Value = Beatmap.Value.BeatmapInfo.Version },
TabbableContentContainer = this
}, },
} }
}, },