SDA-4441: Restore focus on main after shifting

This commit is contained in:
NguyenTranHoangSym 2024-01-11 16:24:39 +07:00
parent f888bf7d7d
commit a62eb6c042

View File

@ -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) &&