diff --git a/osu.Game/Screens/Play/Player.cs b/osu.Game/Screens/Play/Player.cs index c3e351a0ca..c3a9ffdaba 100644 --- a/osu.Game/Screens/Play/Player.cs +++ b/osu.Game/Screens/Play/Player.cs @@ -177,6 +177,16 @@ namespace osu.Game.Screens.Play Restart(); }, }, + new HotkeyExitOverlay + { + Action = () => + { + if (!this.IsCurrentScreen()) return; + + fadeOut(true); + performUserRequestedExit(); + }, + }, failAnimation = new FailAnimation(DrawableRuleset) { OnComplete = onFailComplete, } }; @@ -245,6 +255,11 @@ namespace osu.Game.Screens.Play { if (!this.IsCurrentScreen()) return; + // if a restart has been requested, cancel any pending completion (user has shown intent to restart). + onCompletionEvent = null; + + ValidForResume = false; + this.Exit(); }