[Pkg-mozext-commits] [tabmixplus] 32/147: Ctrl-Click on item in closed tabs list should not close the current tab
David Prévot
taffit at moszumanska.debian.org
Sat Aug 5 15:27:33 UTC 2017
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository tabmixplus.
commit 8200eed41295810012c383a90e7f4d19fbbea7ac
Author: onemen <tabmix.onemen at gmail.com>
Date: Mon Nov 14 01:13:20 2016 +0200
Ctrl-Click on item in closed tabs list should not close the current tab
---
chrome/content/click/click.js | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/chrome/content/click/click.js b/chrome/content/click/click.js
index ef803c4..9b7bd07 100644
--- a/chrome/content/click/click.js
+++ b/chrome/content/click/click.js
@@ -802,12 +802,14 @@ var TabmixAllTabs = {
checkForCtrlClick: function TMP_checkForCtrlClick(aEvent) {
var aButton = aEvent.target;
if (!aButton.disabled && aEvent.button === 0 && (aEvent.ctrlKey || aEvent.metaKey)) {
- if (aButton.id == "btn_undoclose")
+ if (aButton.id == "btn_undoclose") {
TMP_ClosedTabs.undoCloseTab();
- else
+ aButton.setAttribute("afterctrlclick", true);
+ } else if (aButton.id == "btn_tabslist" ||
+ aButton.parentNode && aButton.parentNode.id == "btn_tabslist_menu") {
BrowserCloseTabOrWindow();
-
- aButton.setAttribute("afterctrlclick", true);
+ aButton.setAttribute("afterctrlclick", true);
+ }
}
},
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/tabmixplus.git
More information about the Pkg-mozext-commits
mailing list