How to find whether short keys were used as InputEvent
Hi,
I am writing a plugin and I have added certain short keys in the plugin.xml for my plugin. Some action gets invoked when I use the short key. I want to know whether that action was invoked because of short key or because of selection from context menu.
TIA
~Priya
Please sign in to leave a comment.
Hello Priya,
PK> I am writing a plugin and I have added certain short keys in the
PK> plugin.xml for my plugin. Some action gets invoked when I use the
PK> short key. I want to know whether that action was invoked because of
PK> short key or because of selection from context menu.
For actions invoked from keyboard, AnActionEvent.getPlace() equals ActionPlaces.MAIN_MENU.
--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"