Browse Source

Explicitly focus the BrowserWindow after showing.

Workaround for electron/electron#18034
Fixes #92.
pull/3202/head
TheGoddessInari 6 years ago
parent
commit
7937d8d720
No known key found for this signature in database
GPG Key ID: 1209B1B7632D69A
  1. 4
      app/ux/WebView.js

4
app/ux/WebView.js

@ -551,7 +551,9 @@ Ext.define('Rambox.ux.WebView',{
}
function showWindowAndActivateTab(event) {
require('electron').remote.getCurrentWindow().show();
const currentWindow = require('electron').remote.getCurrentWindow();
currentWindow.show();
currentWindow.focus();
const tabPanel = Ext.cq1('app-main');
tabPanel.getActiveTab().blur();
tabPanel.setActiveTab(me);

Loading…
Cancel
Save