From df66ae160a0b44fe770af47480e62453abbe5979 Mon Sep 17 00:00:00 2001 From: Vulich Fernando <46904390+fvulich@users.noreply.github.com> Date: Tue, 5 Nov 2019 19:33:12 -0300 Subject: [PATCH] Fix: Webview is no longer focused when switching tabs Fixes #2247 #2327 --- app/view/main/MainController.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/view/main/MainController.js b/app/view/main/MainController.js index daee3ffd..6e08ea54 100644 --- a/app/view/main/MainController.js +++ b/app/view/main/MainController.js @@ -42,7 +42,10 @@ Ext.define('Rambox.view.main.MainController', { } var webview = newTab.down('component').el.dom; - if ( webview ) webview.focus(); + if ( webview ) { + tabPanel.getActiveTab().getWebView().blur(); + tabPanel.getActiveTab().getWebView().focus(); + } // Update the main window so it includes the active tab title. if ( Rambox.app.getTotalNotifications() > 0 ) {