Hello Michael.
I need a quick help on a very simple thing, that I hadn't nail because I don't know how to find the proper documentation.
Some days ago I finally found some spare time to port to the V4 some parts of my old "very personal Moi's UI" that I wrote years ago for the V3.
(I'm running Moi V4 on my MacBook Pro)
I always liked the side panel without any commands but only with the sene browser.
So I moved ALL the standard commands into a popup menu that I open in this way (I assigned the action to the A key):
code:
A=script: moi.ui.showMenu('moi://appdata/customui/my/AllStdMoiCommandsPanel1.htm', moi.ui.getUIPanel('moi://ui/CommandBar.htm').document.body.firstChild.firstChild, 4, 0);
And this is how it looks when opened ( the red little labels remind me what's the shortcut that I have associated with the command)
Now...my question is:
How can I make the popup menu automatically close as soon as I press a key on the keyboard?
Currently the popup menu only closes when I click on an icon inside it, or I press the ESC key or I click outside of it.
Actually, if I press any key (the shortcuts that I've associated to the commands), the popup menu doesn't close but only executes the selected command, but I have to press the ESC key to first close the popup.
Thanks for your help.
Ciao.
|