From 3334ee9508ae40974368f68622eb67b3d528d9fe Mon Sep 17 00:00:00 2001 From: Alexander Date: Wed, 4 Oct 2017 02:59:43 +0200 Subject: [PATCH] focus on webview when opening tab make it possible to support autofocus on input elements inside a webview --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index 6ef0f0f..2e17bb9 100644 --- a/index.js +++ b/index.js @@ -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; }