Right click button


#1

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.


#2

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


#3

excellent - not sure how I missed that. Thanks!


#4