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:
Dean Herbert 2022-04-27 16:55:15 +09:00
parent 26f34e8fb9
commit b29af28028
1 changed files with 1 additions and 1 deletions

View File

@ -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);