What I wish to do is have a
Button display a context menu when right-clicked.
MouseListener attached to it takes care of displaying the
PopupMenu just fine.
The problem is that the Button still receives its “click” event when the right mouse button acts upon it, which is something I don’t want in my use case.
Would it be possible to add an option to the base
Button class to avoid that?
EDIT: if it is of any help, this is the patch with which I have hardcoded that behavior (left-click only) in my local JUCE repo. It is provided only to show the sole three lines that would require intervention: left-click-only.txt (1.9 KB)