How can I listen for all keyboard events including backspace key pressed?
Answered
I read this post to find a way to listen for key presses to an editor. And I tried to override TypedActionHandler and called TypedAction.getInstance().setupRawHandler. But I found it can only listen for some specific events. The listener is not called when many other keys are pressed, like backspace, control, command, etc. Is there any way to listen for these keys?
Please sign in to leave a comment.
See https://intellij-support.jetbrains.com/hc/en-us/community/posts/207745409-What-is-the-way-to-catch-events-about-system-keys
Thank you!