Giter Club home page Giter Club logo

Comments (14)

knownasilya avatar knownasilya commented on July 17, 2024

Sounds like a nice UX addition.

from photon.

gosukiwi avatar gosukiwi commented on July 17, 2024

Sounds quite nice. Afterall the project seems very OS X oriented.

from photon.

pilot avatar pilot commented on July 17, 2024

👍

from photon.

pbernasconi avatar pbernasconi commented on July 17, 2024

👍

from photon.

ggamel avatar ggamel commented on July 17, 2024

Submitted PR #29 to implement native OS X window handling.

from photon.

connors avatar connors commented on July 17, 2024

Isn't this behavior already there? All the keyboard commands you listed already work for me when I launch the template app.

from photon.

ggamel avatar ggamel commented on July 17, 2024

Not in Electron core. There are a few issues in the GH issues for it, but not out of the box.

from photon.

connors avatar connors commented on July 17, 2024

@ggamel I'm curious, which version of OS X are you running?

from photon.

ggamel avatar ggamel commented on July 17, 2024

@connors: OS X 10.11. No betas.

from photon.

ggamel avatar ggamel commented on July 17, 2024

@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.

connors avatar connors commented on July 17, 2024

@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.

ggamel avatar ggamel commented on July 17, 2024

@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.

ggamel avatar ggamel commented on July 17, 2024

Okay, @connors: I received the exact same window behavior from a vanilla clone.

See:
electron-osx10 11-photonwindow

Any ideas on what the issue could be?

from photon.

ggamel avatar ggamel commented on July 17, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.