So here is my question.
On macOS for example I can get additional options using the Opt/Alt modifier. while menu is opened.
Is there a singleton / global object I can query for current modifier keys (while my code is running)? Update: there’s ModifierKeys::getCurrentModifiers()
Is there a way to invalidate a Submenu / Popup Menu?
you can have a keyListener, set a flag when option is pressed and then reopen the menu directly via popupMenu.show(). your MenuBarComponent doesn’t have to be the only one who shows the popupMenu returned from MenuBarModel::getMenuForIndex()