mirror of https://github.com/ppy/osu
BackgroundModes shouldn't handle the escape key themselves.
This commit is contained in:
parent
08728b84d1
commit
f2f3b69eee
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue