リンクをCtrl/Command-左クリックした時、browser.tabs.loadInBackgroundではなくbrowser.tabs.loadDivertedInBackgroundの設定が反映されてしまっていたのを修正

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@5135 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2009-09-15 11:48:44 +00:00
parent 81ec689840
commit 32715c4cd9

View File

@ -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(