Search code examples
javaswingjtextareakeyevent

Firing key event ctrl + space on JTextArea?


I'm new to Java Swing. I need to fire event ctrl + space on JTextArea

I could figure and find only one key event fired. Any directions?


Solution

  • A KeyEvent inherits the method getModifiers() from InputEvent.

    The Ctrl key is a modifier.