mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 09:22:54 +08:00
Add ability to exit using game "back" binding
This commit is contained in:
parent
a7982787d4
commit
fb64f6faf2
@ -35,6 +35,15 @@ namespace osu.Game.Skinning.Editor
|
||||
{
|
||||
switch (action)
|
||||
{
|
||||
case GlobalAction.Back:
|
||||
if (skinEditor?.State.Value == Visibility.Visible)
|
||||
{
|
||||
skinEditor.ToggleVisibility();
|
||||
return true;
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
case GlobalAction.ToggleSkinEditor:
|
||||
if (skinEditor == null)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user