In our module, VASL, I have created a custom-code class which implements Key Listener. When it receives the appropriate keystroke, it confirms that a counter is selected and then launches an action on all counters of the selected type in the game.
This is working exactly as intended when using an actual keystroke. I would like allow users to trigger the same effect via a right-click pop up menu action item. I cannot get it to work.
I suspect I am either (a) using the wrong counter trait to enable the menu item or (b) not implementing the correct VASSAL class(es) in my custom class to handle the menu selection.
For (a), I have tried Global Key Command, Global Hokey and Trigger Action. None of them seem to pass the correct information to my custom code class. As for (b), I have no ideas of what else to try besides Key Listener.
What am I missing?
TIA
Doug