app.dock.hide() and showing and hiding the Electron window with shortcuts.
When showing the Electron window it gets the OS focus (even if this is hidden with
app.dock.hide()) so the app that was previously focused (eg: Finder or Chrome) loses the focus.
After I’m done with the Electron window I hide it, and I’d like to focus back on the app that had focus before Electron.
Is there a way to do that?