Keyboard focus inside PopupMenu CustomComponent



I am trying to use a TextEditor and a ListBox as customcomponents within a popupmenus. Everything is working perfectly when the program is loaded as a plugin, however in standalone it seems impossible to use keyboard input (to write in the TextEditor, or scroll the ListBox with up/down). It seems that the popupmenu is stealing the keyboard focus here, so it cannot go to the TextEditor or ListBox. Unfortunately I can't use a CalloutBox here, as there is certain behaviour of PopupMenu that I require. Any ideas how I can fix this? I've subclassed popupmenu so can easily make changes there, but haven't had any luck so far.




For anyone else... Change:

addToDesktop (ComponentPeer::windowIsTemporary

                          | ComponentPeer::windowIgnoresKeyPresses

                          | getLookAndFeel().getMenuWindowFlags());




addToDesktop (ComponentPeer::windowIsTemporary

                          | getLookAndFeel().getMenuWindowFlags());