Skip to content

Commit

Permalink
Don't open new tab by right-click on the new tab button #1751
Browse files Browse the repository at this point in the history
The action should open the context menu.
  • Loading branch information
piroor committed Feb 1, 2018
1 parent 4d744c3 commit e2bb0c5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion webextensions/sidebar/handlers.js
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,8 @@ async function onMouseUp(aEvent) {
var actionForNewTabCommand = gLastMousedown.detail.isAccelClick ?
configs.autoAttachOnNewTabButtonMiddleClick :
configs.autoAttachOnNewTabCommand;
if (isEventFiredOnNewTabButton(aEvent)) {
if (isEventFiredOnNewTabButton(aEvent) &&
gLastMousedown.detail.button != 2) {
if (configs.logOnMouseEvent)
log('click on the new tab button');
handleNewTabAction(aEvent, {
Expand Down

0 comments on commit e2bb0c5

Please sign in to comment.