Skip to content
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

Prevent closing screen #296

Closed
pjebs opened this issue Sep 12, 2018 · 6 comments
Closed

Prevent closing screen #296

pjebs opened this issue Sep 12, 2018 · 6 comments

Comments

@pjebs
Copy link

pjebs commented Sep 12, 2018

I was wondering how you managed to prevent the user from pressing Cmd-W to close the screen without using Kiosk mode?

@hovancik
Copy link
Owner

I bet it's some weird electron thing. cmd+q closes the window for me (macOS).

@pjebs
Copy link
Author

pjebs commented Sep 12, 2018

For me Cmd+Q quits the application.
I'm not referring to to quitting.
When the break screen is full screen, on my mac Cmd+W is blocked from closing/hiding the screen. I was wondering how you achieved that without using kiosk mode.

@hovancik
Copy link
Owner

I don't think I am doing anything special. Does it work differently for you?

What I do is here: https://github.com/hovancik/stretchly/blob/master/app/main.js#L286 maybe some option causes it.

@pjebs
Copy link
Author

pjebs commented Sep 13, 2018

How come you aren't using kioskmode?

@hovancik
Copy link
Owner

I wanted to use it for fullscreen, but I had some issue with it, not working correctly with some option I needed or Operating System, don't remember

But I might start using it, see #256

@hovancik
Copy link
Owner

I'm using kiosk mode now for fullscreen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants