kEVENT_TYPE_FOCUS_NEXT_TAB didn't used! (tab focus was not controlled anymore)

This commit is contained in:
Piro / SHIMODA Hiroshi 2010-12-03 22:40:52 +09:00
parent 1206379c0a
commit d228191dc0

View File

@ -2306,17 +2306,13 @@ TreeStyleTabBrowser.prototype = {
this._focusChangedByCurrentTabRemove = true;
if (
nextFocusedTab &&
!nextFocusedTab.hidden &&
this._tabFocusAllowance.every(function(aFunc) {
try {
return aFunc.call(this, b);
}
catch(e) {
return false;
}
}, this)
)
b.selectedTab = nextFocusedTab;
!nextFocusedTab.hidden
) {
let event = document.createEvent('Events');
event.initEvent(this.kEVENT_TYPE_FOCUS_NEXT_TAB, true, true);
if (tab.dispatchEvent(event))
b.selectedTab = nextFocusedTab;
}
}
this.updateLastScrollPosition();