My plugin hosts an EditorTextField where the user can edit and execute an ad hoc script in the support custom language. I'd like to register CTRL+ENTER/CMD+ENTER as a keystroke that can be used to execute the script. Currently there's an Execute button in a toolbar with a registered mnemonic that requires the ALT/OPT modifier. I've tried using the standard Swing method for registering a keyboard action with the EditorTextField component, but it doesn't seem to work here. That's not entirely surprising since that very rich editor component is reacting to the selected/configured keymap.
IDEA's own "Evaluate Expression" debugger window does allow this, though, so I'm really wondering how that's accomplished.
Thanks in advance for any guidance!