Skip to content

Commit e865ceb

Browse files
committed
fix: right clicks on tab is making the tab active
1 parent 5e78285 commit e865ceb

File tree

1 file changed

+3
-0
lines changed
  • src/extensionsIntegrated/TabBar

1 file changed

+3
-0
lines changed

src/extensionsIntegrated/TabBar/main.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -512,6 +512,9 @@ define(function (require, exports, module) {
512512

513513
// open tab on mousedown event
514514
$(document).on("mousedown", ".phoenix-tab-bar .tab", function (event) {
515+
// to prevent right-clicks from making the tab active
516+
if (event.button === 2) { return; }
517+
515518
if ($(event.target).hasClass("fa-times") || $(event.target).closest(".tab-close").length) {
516519
return;
517520
}

0 commit comments

Comments
 (0)