mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 00:33:21 +08:00
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 @@ namespace osu.Game.Overlays.Mods
|
||||
|
||||
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
Block a user