What is the way to catch events about system keys

Answered

Hi,

 

I use TypedActionHandler to catch and process events about keys generating symbols, but my plugin also will benefit from

detecting events for keys like Enter, Arrows, Backspace and Delete.

 

 

1 comment
Comment actions Permalink

TypedActionHandler only can process what is considered as typing by editor - i.e. keypresses which are not mapped to actions. To process those as well, you can register you custom handlers for specific actions (see EditorActionHandler and examples of its usage, and also e.g. EnterHandlerDelegate/BackspaceHandlerDelegate as examples of extending specific actions).

You can also process events at the lower level, by registering event dispatcher at event queue level (see IdeEventQueue.addDispatcher).

0

Please sign in to leave a comment.