Browse Source

Fix: Webview is no longer focused when switching tabs

Fixes #2247 #2327
pull/2453/head
Vulich Fernando 6 years ago
parent
commit
df66ae160a
  1. 5
      app/view/main/MainController.js

5
app/view/main/MainController.js

@ -42,7 +42,10 @@ Ext.define('Rambox.view.main.MainController', {
} }
var webview = newTab.down('component').el.dom; 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. // Update the main window so it includes the active tab title.
if ( Rambox.app.getTotalNotifications() > 0 ) { if ( Rambox.app.getTotalNotifications() > 0 ) {

Loading…
Cancel
Save