Comments (14)
Sounds like a nice UX addition.
from photon.
Sounds quite nice. Afterall the project seems very OS X oriented.
from photon.
👍
from photon.
👍
from photon.
Submitted PR #29 to implement native OS X window handling.
from photon.
Isn't this behavior already there? All the keyboard commands you listed already work for me when I launch the template app.
from photon.
Not in Electron core. There are a few issues in the GH issues for it, but not out of the box.
from photon.
@ggamel I'm curious, which version of OS X are you running?
from photon.
@connors: OS X 10.11. No betas.
from photon.
@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. 😄
from photon.
@ggamel Weird. I'm confused because when I run npm start
, I can do all the behaviors you've listed.
This line in app.js
makes sure that the default OS X behavior is respected.
from photon.
@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!
from photon.
Okay, @connors: I received the exact same window behavior from a vanilla clone.
Any ideas on what the issue could be?
from photon.
@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:
- the ability for the active Photon window to persist in the background, even after pressing Cmd+W or the red X stoplight, meaning if audio is playing in the Photon window, for instance, it will continue uninterupted
- the ability to activate again by clicking the app icon.
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. 😀
from photon.
Related Issues (20)
- photon.js is identified as virus by Avira AV
- Is this project deprecated? HOT 11
- Cocoa licensing and copyright HOT 3
- Update: PhotonKit Components HOT 6
- It won't run HOT 2
- Ignore
- kq_init error on demo start HOT 2
- Project dead? HOT 5
- How to compile and install under Linux
- NEW RELEASE 1.0 HOT 7
- It's wrong HOT 2
- Can I Use Webviews with photon HOT 2
- How do I turn off the tone of the download completed?
- Is there a way to disable row highlight on table row click?
- Any update HOT 2
- Update docs download links HOT 2
- install fails HOT 3
- no fount module app HOT 2
- Error on template app HOT 3
- Documentation not sufficient HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from photon.