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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user