
Shortcuts with contextual menus

kgord831
Here is some minimalist code that demonstrates the issue I'm having.
static function IgorStartOrNewHook(igorApplicationNameStr) string igorApplicationNameStr Execute/Q "CreateBrowser" Execute/Q "ModifyBrowser appendUserButton={Button, \"myButton()\", 1}, echoCommands=0" end function myButton() PopupContextualMenu/N "Button" end Menu "Button", ContexualMenu "Do it/1", /Q, doIt() end function doIt() print "Do it!" end
If I click the button, "Do it!" is correctly printed. If I try the shortcut, the function does not execute. If I remove
ContextualMenu
from the Menu
option, then I get a new option in the toolbar, and my shortcut fires correctly.Am I implementing this incorrectly? Or is this a bug?
Thanks!
--Jim Prouty
Software Engineer, WaveMetrics, Inc.
February 2, 2018 at 12:38 am - Permalink
February 12, 2018 at 07:49 am - Permalink
February 12, 2018 at 08:11 am - Permalink