void (AWTEvent event) { // this method ensures key events are dispatched to editor component, even if it's not focused KeyboardFocusManager.getCurrentKeyboardFocusManager().redispatchEvent(getEditor().getContentComponent(), event); }