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:
parent
a7982787d4
commit
fb64f6faf2
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user