Right-click for buttons please

Detached Dialogs accept the “rclick” event.

Buttons do not, as far as I know - but you can do this with a ThreeButton - which is a more complex structure. Isn’t this structure somewhat outdated? or at least a somewhat bizarre overhead (especially when you’re creating a series of Dynamic Buttons) just to obtain the possibility for capturing a right-click?

There is a button modifier @ keydown which can capture ctrl, shift… Isn’t it about time to have a modifier, say, @ mousekey, which accepts lclick, rclick, and perhaps mclick for the scrollwheel button? That makes it much more straightforward if all we need is capturing something else than the left mouse click.

Or maybe the possibility already exists but I missed it in the list of modifiers?

1 Like

That's the entire point of three-buttons, and they aren't outdated / legacy / deprecated in any way.

If you want separate left, middle and/or right-click actions, use one. That's what they are for.

My point is twofold:

  1. When you create a list of twenty or more dynamic buttons, and you need a Right-click on those, its pretty heavy lifting to make them all three-buttons. Sure, it can be done, but we need to attribute button.func to the second button instead of the first, etc. etc. - all of this just to be able to capture a right-click?
  2. Why exactly would adding something like @ mousekey be harder than it was to add @ keydown?

But I won’t insist, as you don’t seem to see any logic or commonsense in my question.

1 Like

I support what I understand to be the OP's implicit request for a single button that can be activated by either a rclick or mclick.

1 Like