I’m about to start porting an add-on I inherited, but I’m not sure how it’s going to be able to behave.
It used to provide a button that did something on primary [left] click, but also provided a drop-down menu (a side “v“, also left-click) which the browser managed.
It looks like all I have available now is a single left-click on a button, I can’t see any evidence of being able to add even context menu items to buttons (I was thinking of having the primary action on click and the secondary pop-up as a context menu).
Can I detect where on a button it was clicked? Or style it on hover?
Do we even have the ability to have varied with buttons? An ultimate fall-back might then be to supply two narrow buttons that can go next to each other, and have one for click and one for popup.
For ref., see page for the add-on and its screenshot: https://addons.mozilla.org/en-US/firefox/addon/neo-diggler/