1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-26 02:21:17 +08:00

Tidy up escape handling

This commit is contained in:
Dean Herbert
2018-06-27 16:06:26 +09:00
Unverified
parent 8cf1553fd5
commit 6a80a21078
7 changed files with 37 additions and 58 deletions
+1 -12
View File
@@ -148,8 +148,6 @@ namespace osu.Game.Screens.Menu
case Key.Space:
logo?.TriggerOnClick(state);
return true;
case Key.Escape:
return goBack();
}
return false;
@@ -181,16 +179,7 @@ namespace osu.Game.Screens.Menu
}
}
public bool OnReleased(GlobalAction action)
{
switch (action)
{
case GlobalAction.Back:
return true;
default:
return false;
}
}
public bool OnReleased(GlobalAction action) => false;
private void onPlay()
{