I’m using a combobox with a slight transparency in the popupmenu, but sometimes mouse clicks get through the transparency and clicks what’s under the menu. I guess overriding mouseDown won’t help, since the popup is created on the fly by the showPopup method.
I changed that to a more traditional addItem(id, “blabla”, true, false) and triggering the method from comboBoxPopupMenuFinishedCallback. It works fine now, but I don’t understand why the [this] capture is triggering if I don’t explicitly click on that item.
This sounds like it’s probably a bug in the PopupMenu. Are you able to provide any more details that might help us to track down the issue? e.g. What platform are you using for testing? Is there anything special about how you are showing your menus? Have you seen the same issue in any of the JUCE demo projects?