Merge pull request #41 from kontrollanten/autofocus-webviews
Focus on webview when opening tab
This commit is contained in:
commit
fd3ed944ba
1 changed files with 1 additions and 0 deletions
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