M-Reimer / undoclosetab

Undo Close Tab Add-on for Firefox
GNU General Public License v3.0
92 stars 16 forks source link

Feature request: add an option for clicking to show recent closed tabs #31

Closed kidwm closed 6 years ago

kidwm commented 6 years ago

instead of restoring the last closed tab.

or offer an option to swap left and right click functions.

M-Reimer commented 6 years ago

This is not possible. Context-Menu is "right click". Nothing I could do about this.

rpayanm commented 6 years ago

Can you do like Undo Closed Tabs Button (revived) does?

M-Reimer commented 6 years ago

No, as this Addon only has the "menu list". It is bound to the "browserAction" as "popup" and the documentation says:

https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/browserAction/onClicked

This event will not fire if the browser action has a popup.

This means that you can't get a "single click restore of last tab" with this Addon. Just not possible as they use the only "single click" event (which is left click) to pop up their menu.

With my solution I can have both. I can make use of the "onClicked" event handler for my "single click restore" and place the menu to the tab list into the context menu.

rpayanm commented 6 years ago

ok, thank you!