1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-23 09:37:22 +08:00

Fix regression causing binding settings to fail

This commit is contained in:
Dean Herbert 2018-06-30 23:51:27 +09:00
parent 754e072e01
commit 00fd5c8dbc

View File

@ -40,6 +40,13 @@ namespace osu.Game.Graphics.UserInterface
BorderThickness = 0;
}
protected override bool OnKeyDown(InputState state, KeyDownEventArgs args)
{
if (!HasFocus) return false;
return base.OnKeyDown(state, args);
}
public override bool OnPressed(GlobalAction action)
{
if (action == GlobalAction.Back)