key remapper: don't consume keytype events when dialog is open

This fixes having a remapped key held down during a dialog opening that consumes the raw key event.
This commit is contained in:
Alfred Ababio
2020-05-31 12:33:51 -04:00
committed by GitHub
parent c39cbd6b4f
commit 482f9c5e44

View File

@@ -59,7 +59,7 @@ class KeyRemappingListener implements KeyListener
public void keyTyped(KeyEvent e)
{
char keyChar = e.getKeyChar();
if (keyChar != KeyEvent.CHAR_UNDEFINED && blockedChars.contains(keyChar))
if (keyChar != KeyEvent.CHAR_UNDEFINED && blockedChars.contains(keyChar) && plugin.chatboxFocused())
{
e.consume();
}