1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 15:12:57 +08:00

Add ability to exit using game "back" binding

This commit is contained in:
Dean Herbert 2021-04-29 17:40:58 +09:00
parent a7982787d4
commit fb64f6faf2

View File

@ -35,6 +35,15 @@ namespace osu.Game.Skinning.Editor
{ {
switch (action) switch (action)
{ {
case GlobalAction.Back:
if (skinEditor?.State.Value == Visibility.Visible)
{
skinEditor.ToggleVisibility();
return true;
}
break;
case GlobalAction.ToggleSkinEditor: case GlobalAction.ToggleSkinEditor:
if (skinEditor == null) if (skinEditor == null)
{ {