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