I have a MacOS app that defines a key combo shortcut. When pressed, the app hides / shows itself via
window.hide() / window.show(). Imagine for a moment that the app has been hidden via this shortcut. If the user clicks the app dock icon, I know to show the app, because I am watching for the app’s
activate event. But… so far as I can tell, no similar event exists for when the user brings the app into “focus” via CMD + TAB. When I do this, the app’s menu is given focus at the top of the screen, but I’m unable to detect an event that would tell me that I need to show the window again.
Has anyone else dealt with this before?