1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

PopupMenu: Add missing target components for menus created by built-in widgets

This commit is contained in:
reuk 2025-05-29 17:28:18 +01:00
parent 336a475921
commit b20df8d713
No known key found for this signature in database
6 changed files with 14 additions and 9 deletions

View file

@ -1563,7 +1563,7 @@ void CodeEditorComponent::mouseDown (const MouseEvent& e)
m.setLookAndFeel (&getLookAndFeel());
addPopupMenuItems (m, &e);
m.showMenuAsync (PopupMenu::Options(),
m.showMenuAsync (PopupMenu::Options().withTargetComponent (this).withMousePosition(),
ModalCallbackFunction::forComponent (codeEditorMenuCallback, this));
}
else