focus on webview when opening tab

make it possible to support autofocus on input elements inside a webview
This commit is contained in:
Alexander 2017-10-04 02:59:43 +02:00
parent db5738fa7d
commit 3334ee9508

View file

@ -210,6 +210,7 @@ class Tab extends EventEmitter {
TabGroupPrivate.setActiveTab.bind(this.tabGroup)(this);
this.tab.classList.add("active");
this.webview.classList.add("visible");
this.webview.focus();
this.emit("active", this);
return this;
}