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; this._focusChangedByCurrentTabRemove = true;
if ( if (
nextFocusedTab && nextFocusedTab &&
!nextFocusedTab.hidden && !nextFocusedTab.hidden
this._tabFocusAllowance.every(function(aFunc) { ) {
try { let event = document.createEvent('Events');
return aFunc.call(this, b); event.initEvent(this.kEVENT_TYPE_FOCUS_NEXT_TAB, true, true);
} if (tab.dispatchEvent(event))
catch(e) { b.selectedTab = nextFocusedTab;
return false; }
}
}, this)
)
b.selectedTab = nextFocusedTab;
} }
this.updateLastScrollPosition(); this.updateLastScrollPosition();