1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 21:07:33 +08:00

Merge pull request #378 from peppy/general-fixes

Fix GlobalHotkeys not working (regression due to masking rules).
This commit is contained in:
Thomas Müller 2017-02-20 08:00:17 +01:00 committed by GitHub
commit 86a3d7b2c0
2 changed files with 6 additions and 1 deletions

@ -1 +1 @@
Subproject commit 697d8b7e9530ba7914d9c78012329ce1559e3681
Subproject commit b3f409ffb027f1b16c639c7ce3bb9dc4f215f79b

View File

@ -13,6 +13,11 @@ namespace osu.Game.Input
public override bool HandleInput => true;
public GlobalHotkeys()
{
RelativeSizeAxes = Axes.Both;
}
protected override bool OnKeyDown(InputState state, KeyDownEventArgs args)
{
return Handler(state, args);