mirror of https://github.com/ppy/osu
Fix mod panels not ignoring super key presses
Most other usages have this included. Noticed that the panel was changing state when exiting the game using cmd-w. Would probably be nice to have an exposed `HasAnyModifierPressed` helper property.
This commit is contained in:
parent
26f34e8fb9
commit
b29af28028
|
@ -441,7 +441,7 @@ private void updateFilter()
|
|||
|
||||
protected override bool OnKeyDown(KeyDownEvent e)
|
||||
{
|
||||
if (e.ControlPressed || e.AltPressed) return false;
|
||||
if (e.ControlPressed || e.AltPressed || e.SuperPressed) return false;
|
||||
if (toggleKeys == null) return false;
|
||||
|
||||
int index = Array.IndexOf(toggleKeys, e.Key);
|
||||
|
|
Loading…
Reference in New Issue