Middle mouse button & opening new browser tab (in foreground and background)
first of all thanks for making this great project :)
I would like to ask about two separate things:
Why 'clicked' event does not fire on the middle mouse button? Let's take this: https://www.webtoolkit.eu/widgets/forms - there is a button that has assigned 'clicked' callback. It does not react on the middle mouse button. Is it even possible to handle that button?
Thanks for the help,
Updated by Korneel Dumon over 1 year ago
there is indeed no clicked-event for the middle button (or right button). The event maps onto browser's clicked event, which only fires for the 'primary' mouse-button. I will adjust the documentation to more accurately reflect that. If you connect to mouseWentDown() or mouseWentUp(), you can get the middle/right clicks.
For WPopupMenu, you can add a WMenuItem to the menu and use WMenuItem::setLink() to achieve what you want.