mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-12-26 08:51:22 -06:00
Merge pull request #2072 from NguyenTranHoangSym/SDA-4441
SDA-4441: Restore focus on main after closing sub Windows
This commit is contained in:
commit
d5647f0170
@ -643,6 +643,8 @@ export class WindowHandler {
|
||||
|
||||
// workaround for https://perzoinc.atlassian.net/browse/SDA-4251
|
||||
this.mainWindow?.on('focus', () => {
|
||||
const mainView = this.getMainView();
|
||||
mainView?.webContents.focus();
|
||||
if (
|
||||
this.mainWindow &&
|
||||
windowExists(this.mainWindow) &&
|
||||
|
Loading…
Reference in New Issue
Block a user