Fix some plain keybinds not working when a modifier is active

This commit is contained in:
mezz 2016-04-05 23:01:06 -07:00
parent 045e8bf806
commit e68908e9d5

View file

@ -22,11 +22,15 @@ public class KeyBindingMap
public KeyBinding lookupActive(int keyCode)
{
KeyModifier activeModifier = KeyModifier.getActiveModifier();
if (activeModifier.matches(keyCode))
if (!activeModifier.matches(keyCode))
{
activeModifier = KeyModifier.NONE;
KeyBinding binding = getBinding(keyCode, activeModifier);
if (binding != null)
{
return binding;
}
}
return getBinding(keyCode, activeModifier);
return getBinding(keyCode, KeyModifier.NONE);
}
private KeyBinding getBinding(int keyCode, KeyModifier keyModifier)