mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-12-28 09:51:06 -06:00
SDA-3434 - Fix hamburger menu focus issue (#1287)
This commit is contained in:
parent
ef630cdd8c
commit
349fa2c1bb
@ -163,6 +163,12 @@ ipcMain.on(
|
||||
browserWin.winName === apiName.welcomeScreenName)
|
||||
) {
|
||||
showPopupMenu({ window: browserWin });
|
||||
// Give focus back to main webContents so that
|
||||
// cut, copy & paste from edit menu works as expected
|
||||
const mainWebContents = windowHandler.getMainWebContents();
|
||||
if (mainWebContents && !mainWebContents.isDestroyed()) {
|
||||
mainWebContents.focus();
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user