Merge pull request #2005 from tgi74/PlayerSettigsOverlay_InputHandle

Fix PlayerSettingsOverlay not able to reappear after being hidden
This commit is contained in:
Dan Balasescu
2018-02-02 11:21:37 +09:00
committed by GitHub

View File

@ -49,6 +49,9 @@ namespace osu.Game.Screens.Play.HUD
protected override void PopIn() => this.FadeIn(fade_duration);
protected override void PopOut() => this.FadeOut(fade_duration);
//We want to handle keyboard inputs all the time in order to trigger ToggleVisibility() when not visible
public override bool HandleKeyboardInput => true;
protected override bool OnKeyDown(InputState state, KeyDownEventArgs args)
{
if (args.Repeat) return false;