Right click button

I feel there must be a really easy way to do this, and I’m missing it …

I want to make a menu appear when a button is right clicked … can I access the modifier keys on the button->clicked event somehow?

I can override the mouseDown method … but as one would expect, this screws up the buttons operations.

If you look in the Button class you’ll see there’s a second clicked() method you can override, that gives you the modifiers.

excellent - not sure how I missed that. Thanks!