Menu Feature Request


#1

PopupMenu::Options::withTargetComponent() makes a popup menu appear either above or below a component, could we get a flag to optionally make it appear beside? Like a sub menu would.

Closest work around I’ve found is to give withTargetScreenArea() an empty Rect, but I can’t control if the menu goes up or down so sometimes it looks weird.

Internally there is already a flag that does what I want, but it’s only set if the target area is empty, if you could expose it Options struct, that would be nice.


#2

Also, is there a way to disable ComponentPeer::windowIgnoresKeyPresses() for PopupMenus? I want to add a custom component that responds to keyboard.