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.
Thanks,
Santosh
请先登录再写评论。
"Presentation Assistant" does exactly this http://plugins.jetbrains.com/plugin/7345
See https://github.com/chashnikov/IntelliJ-presentation-assistant/blob/master/src/ShortcutPresenter.kt for implementation.
Thanks Yann.Is this a kotlin code? can i extend this in Java?
Yes, this is Kotlin. Kotlin and Java can be used together, not sure how you want to extend the existing plugin though.