keyremapping: use modified key map for mapping key release

This cleans up the code some and is more-correct since it will eg. no
longer remap fkeys on keyrelease even when it was not remapped on
keypress.
This commit is contained in:
Adam
2020-05-23 20:10:57 -04:00
parent c2a9ac443b
commit e9aac02a43
2 changed files with 8 additions and 104 deletions

View File

@@ -99,9 +99,9 @@ public class KeyRemappingListenerTest
verify(event).consume();
lenient().when(keyRemappingPlugin.isTyping()).thenReturn(true); // release handler no longer checks this
// with the plugin now in typing mode, previously pressed and remapped keys should still be mapped
// on key release regardless
when(keyRemappingPlugin.isTyping()).thenReturn(true);
event = mock(KeyEvent.class);
when(event.getKeyCode()).thenReturn(KeyEvent.VK_D);
keyRemappingListener.keyReleased(event);