You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Electron has a known bug: if you call alert() or confirm(), focus breaks, so for example you can't enter text in an input field after these functions are called. See electron/electron#31917 and electron/electron#41603
Losing and regaining the focus fixes this quirk, so we made a plugin that overrides alert() and confirm() in order to call BrowserWindow.getFocusedWindow().blur() and focus() on the main process after the native dialogs functions returns.
(I'm not sure if BrowserWindow.getFocusedWindow() is the best way to get the window, but it works and I think this is a good way to handle it if there are multiple windows)