mirror of
https://github.com/zen-browser/desktop.git
synced 2025-12-24 15:18:54 +00:00
fix: closes #6992 - Fixed url bar not being selected when selecting an empty tab, r=workspaces
This commit is contained in:
@@ -112,6 +112,17 @@ var ZenWorkspaces = new (class extends ZenMultiWindowFeature {
|
||||
|
||||
selectEmptyTab(newTabTarget = null) {
|
||||
if (this._emptyTab && gZenVerticalTabsManager._canReplaceNewTab) {
|
||||
if (gBrowser.selectedTab !== this._emptyTab) {
|
||||
window.addEventListener(
|
||||
'TabSelect',
|
||||
() => {
|
||||
setTimeout(() => {
|
||||
gURLBar.select();
|
||||
}, 0);
|
||||
},
|
||||
{ once: true }
|
||||
);
|
||||
}
|
||||
gBrowser.selectedTab = this._emptyTab;
|
||||
return this._emptyTab;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user