Fix GlobalHotkeys not working (regression due to masking rules).

This commit is contained in:
Dean Herbert 2017-02-20 15:27:48 +09:00
parent d13b82d073
commit 737bd62c30
No known key found for this signature in database
GPG Key ID: 46D71BF4958ABB49
1 changed files with 5 additions and 0 deletions

View File

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