New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Event on CommandOrControl+Tab click #9577
Comments
A follow-up post has been left in the discussion thread that you referenced. Apparently you can tap into the
|
Checking the |
@andrewfan I have the answer we've been looking for. For reference, see this issue. The trick is to not hide your application's window, but rather to hide the entire application itself via
|
@tkambler I'm doing exactly the same and it still does not work for me. For now, I just removed my app from the dock and it made app disappear from app switcher. |
@andrewfan Here is the sample app in which I implemented this. |
Closing as stale and seemingly resolved. |
I'm working on the application that should appear on the shortcut click. Once user press shortcut I'm toggling window visibility with
show\hide
methods.My problem is when window was hidden by shortcut and the user pressed Cmd-Tab i have no event to be able to show the window.
I found similar issue here #2444 it is closed but
activate
event does not solve the problem (it is simply not firing) also i fond the same issue herehttps://discuss.atom.io/t/how-to-detect-the-activation-of-an-electron-window-on-macos-via-cmd-tab/39442
The text was updated successfully, but these errors were encountered: