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