kEVENT_TYPE_FOCUS_NEXT_TAB didn't used! (tab focus was not controlled anymore)
This commit is contained in:
parent
1206379c0a
commit
d228191dc0
@ -2306,18 +2306,14 @@ 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)
|
||||
)
|
||||
!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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user