From f2f3b69eee5290e4048830531fceb57d7bbfc770 Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Fri, 7 Oct 2016 18:58:59 +0900 Subject: [PATCH] BackgroundModes shouldn't handle the escape key themselves. --- osu.Game/GameModes/BackgroundMode.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/osu.Game/GameModes/BackgroundMode.cs b/osu.Game/GameModes/BackgroundMode.cs index a34ec2d40b..1f90448e55 100644 --- a/osu.Game/GameModes/BackgroundMode.cs +++ b/osu.Game/GameModes/BackgroundMode.cs @@ -24,6 +24,12 @@ public virtual bool Equals(BackgroundMode other) const float transition_length = 500; const float x_movement_amount = 50; + protected override bool OnKeyDown(InputState state, KeyDownEventArgs args) + { + //we don't want to handle escape key. + return false; + } + public override void Load() { base.Load();