-
Notifications
You must be signed in to change notification settings - Fork 579
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
Implement native OS X window handling for close/quit #12
Comments
Sounds like a nice UX addition. |
Sounds quite nice. Afterall the project seems very OS X oriented. |
👍 |
1 similar comment
👍 |
Submitted PR #29 to implement native OS X window handling. |
Isn't this behavior already there? All the keyboard commands you listed already work for me when I launch the template app. |
Not in Electron core. There are a few issues in the GH issues for it, but not out of the box. |
@ggamel I'm curious, which version of OS X are you running? |
@connors: OS X 10.11. No betas. |
@connors Also see: sindresorhus/caprine#6 This is something that others have been wanting, but is apparently not included in Electron by default. My implementation has been working as expected. 😄 |
@connors Crazy! I'll try again with a fresh copy of photon to see if it's in-line with your experience. Otherwise, I'll make a screencast to show you! |
Okay, @connors: I received the exact same window behavior from a vanilla clone. Any ideas on what the issue could be? |
@connors I just realized I never listed clicking the dock icon and showing the app window in my original issue comment. Just updated that comment to clarify! Are you able to click the dock icon to activate the Photon app window? My code/commit introduces:
Essentially, the default behavior in Electron (this line), after pressing Cmd+W or the X stoplight destroys the BrowserWindow, meaning you either have to recreate it (acceptable in some situations) or have some code that keeps it alive/hidden. My code ensures the BrowserWindow hasn't been destroyed and instead persists until you force quit or Cmd+Q. 😀 |
Is there interest in implementing native OS X window handling for close/quit? If so, a personal project of mine has this functionality working 100% and it's 👌🏻👌🏻👌🏻. Improves the app experience (for me at least) by making the app feel far more native.
Pressing Cmd+Q and Cmd+W under OS X are common actions taken by OS X users:
Cmd+W
results in the active app window being closed/hidden, but still active and not terminated in the backgroundCmd+Q
results in the active app window being quit/terminated.X
traffic light results in the active app window being closed/hidden, but still active and not terminated in the background.Thoughts? It shouldn't be a big deal for me to implement for photon, but figured I would test the waters to see if the interest is there.
The text was updated successfully, but these errors were encountered: