hotkeys on options

 From:  vector illustrator (QUARITEXA)
9589.11 In reply to 9589.9 
Just one question. I want to insert options panel into top bar, like menu on attached video.
I draw how I see it:


The moi.ui.showMenu closes when you click on the viewport.
But options panel shouldn't. How to do this?
Attachments: