Capturing shortcuts

Hi All,

I am trying to write a plugin that will capture the times a keyboard shortcut is being used and use it for reporting purposes.
I tried looking thoruhg the source code for KeyPrompter to get some ideas.
I am able to hook my AWTEventListener in the toolkit listener queue but unable to capture the shortcut completely.
Is this possible? what approach should i use to capture it?Is there a plugin that already does this?
I see more use cases to show the shortcuts in real life like while doing screencasts,pair programming ,etc?

Any help/pointers are welcome.

Comment actions Permalink

Thanks Yann.Is this a kotlin code? can i extend this in Java?

Comment actions Permalink

Yes, this is Kotlin. Kotlin and Java can be used together, not sure how you want to extend the existing plugin though.


Please sign in to leave a comment.