デフォルトのタブのフォーカス制御処理が働かなくなっていたのを修正
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@4638 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
24874a4402
commit
ee70014ccc
@ -526,8 +526,8 @@ var TreeStyleTabService = {
|
||||
return (
|
||||
this.expandTwistyArea &&
|
||||
this._expandTwistyAreaAllowance.every(function(aFunc) {
|
||||
return aFunc(aTabBrowser);
|
||||
})
|
||||
return aFunc.call(this, aTabBrowser);
|
||||
}, this)
|
||||
);
|
||||
},
|
||||
expandTwistyArea : true,
|
||||
@ -1160,9 +1160,24 @@ var TreeStyleTabService = {
|
||||
);
|
||||
|
||||
this.overrideExtensionsPreInit(); // hacks.js
|
||||
|
||||
this.registerTabFocusAllowance(this.defaultTabFocusAllowance);
|
||||
},
|
||||
preInitialized : false,
|
||||
|
||||
|
||||
defaultTabFocusAllowance : function(aBrowser)
|
||||
{
|
||||
var tab = aBrowser.selectedTab;
|
||||
return (
|
||||
!this.getPref('browser.tabs.selectOwnerOnClose') ||
|
||||
!tab.owner ||
|
||||
(
|
||||
aBrowser._removingTabs &&
|
||||
aBrowser._removingTabs.indexOf(tab.owner) > -1
|
||||
)
|
||||
);
|
||||
},
|
||||
|
||||
init : function()
|
||||
{
|
||||
if (!('gBrowser' in window)) return;
|
||||
|
@ -1516,8 +1516,8 @@ TreeStyleTabBrowser.prototype = {
|
||||
nextFocusedTab &&
|
||||
b.selectedTab == tab &&
|
||||
this._tabFocusAllowance.every(function(aFunc) {
|
||||
return aFunc(b);
|
||||
})
|
||||
return aFunc.call(this, b);
|
||||
}, this)
|
||||
)
|
||||
b.selectedTab = nextFocusedTab;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user