focus on webview when opening tab
make it possible to support autofocus on input elements inside a webview
This commit is contained in:
parent
db5738fa7d
commit
3334ee9508
1 changed files with 1 additions and 0 deletions
1
index.js
1
index.js
|
@ -210,6 +210,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