mirror of
https://ark.sudovanilla.org/Korbs/electron-tabs.git
synced 2024-12-23 03:53:53 +00:00
Merge pull request #41 from kontrollanten/autofocus-webviews
Focus on webview when opening tab
This commit is contained in:
commit
fd3ed944ba
1
index.js
1
index.js
|
@ -219,6 +219,7 @@ class Tab extends EventEmitter {
|
||||||
TabGroupPrivate.setActiveTab.bind(this.tabGroup)(this);
|
TabGroupPrivate.setActiveTab.bind(this.tabGroup)(this);
|
||||||
this.tab.classList.add("active");
|
this.tab.classList.add("active");
|
||||||
this.webview.classList.add("visible");
|
this.webview.classList.add("visible");
|
||||||
|
this.webview.focus();
|
||||||
this.emit("active", this);
|
this.emit("active", this);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue