Merge pull request #41 from kontrollanten/autofocus-webviews

Focus on webview when opening tab
This commit is contained in:
Thomas Brouard 2017-10-04 09:42:47 +02:00 committed by GitHub
commit fd3ed944ba

View file

@ -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;
} }