[BR] Pro Tools automation menu click toggles JUCE ToggleButton

In Pro Tools (AAX), the automation menu gesture leaks through to a JUCE ToggleButton.

Repro:

  • macOS: Ctrl + Opt + Cmd + click
  • Windows: Ctrl + Alt + Win + click

The Pro Tools automation menu opens, but the ToggleButton also toggles.

This occurs even when:

  • The button is attached to a real parameter (APVTS)
  • AudioProcessorEditor::getControlParameterIndex (Component&) is correctly implemented

Expected: only the automation menu.
Actual: automation menu + button toggles.

Is this expected Pro Tools/AAX behaviour, or should JUCE be suppressing the button click for this gesture?

PIP attached:
ButtonTestPIP.h (7.1 KB)