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 ) {