From 32715c4cd9e117bc656a8557c71e2afe08a0be93 Mon Sep 17 00:00:00 2001 From: piro Date: Tue, 15 Sep 2009 11:48:44 +0000 Subject: [PATCH] =?UTF-8?q?=E3=83=AA=E3=83=B3=E3=82=AF=E3=82=92Ctrl/Comman?= =?UTF-8?q?d-=E5=B7=A6=E3=82=AF=E3=83=AA=E3=83=83=E3=82=AF=E3=81=97?= =?UTF-8?q?=E3=81=9F=E6=99=82=E3=80=81browser.tabs.loadInBackground?= =?UTF-8?q?=E3=81=A7=E3=81=AF=E3=81=AA=E3=81=8Fbrowser.tabs.loadDivertedIn?= =?UTF-8?q?Background=E3=81=AE=E8=A8=AD=E5=AE=9A=E3=81=8C=E5=8F=8D?= =?UTF-8?q?=E6=98=A0=E3=81=95=E3=82=8C=E3=81=A6=E3=81=97=E3=81=BE=E3=81=A3?= =?UTF-8?q?=E3=81=A6=E3=81=84=E3=81=9F=E3=81=AE=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@5135 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- content/treestyletab/treestyletab.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/content/treestyletab/treestyletab.js b/content/treestyletab/treestyletab.js index 29ed2f7b..79e0dbd8 100644 --- a/content/treestyletab/treestyletab.js +++ b/content/treestyletab/treestyletab.js @@ -528,6 +528,11 @@ var TreeStyleTabService = { ).booleanValue; }, + isNewTabAction : function(aEvent) + { + return aEvent.button == 1 || (aEvent.button == 0 && this.isAccelKeyPressed(aEvent)); + }, + isAccelKeyPressed : function(aEvent) { var isMac = navigator.platform.toLowerCase().indexOf('mac') > -1; @@ -1778,7 +1783,10 @@ catch(e) { modifier : $1, invert : TreeStyleTabService.getTreePref('link.invertDefaultBehavior') }) ? - (TreeStyleTabService.readyToOpenDivertedTab(), true) : + ( + (TreeStyleTabService.isNewTabAction(event) ? null : TreeStyleTabService.readyToOpenDivertedTab()), + true + ) : (TreeStyleTabService.readyToOpenChildTab(), false) ]]> ).replace(