Merge remote-tracking branch 'smoogipoo/void-key-up-returns' into update-framework

This commit is contained in:
Dean Herbert
2020-01-22 22:57:56 +09:00
4 changed files with 10 additions and 9 deletions

View File

@ -218,12 +218,15 @@ namespace osu.Game.Overlays.KeyBinding
return true;
}
protected override bool OnKeyUp(KeyUpEvent e)
protected override void OnKeyUp(KeyUpEvent e)
{
if (!HasFocus) return base.OnKeyUp(e);
if (!HasFocus)
{
base.OnKeyUp(e);
return;
}
finalise();
return true;
}
protected override bool OnJoystickPress(JoystickPressEvent e)