Fix some plain keybinds not working when a modifier is active
This commit is contained in:
parent
045e8bf806
commit
e68908e9d5
1 changed files with 7 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue