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

Wish: Non-lion Window.fullscreen (Mac) #80

Closed
jorgenskogmo opened this issue Oct 8, 2012 · 17 comments
Closed

Wish: Non-lion Window.fullscreen (Mac) #80

jorgenskogmo opened this issue Oct 8, 2012 · 17 comments

Comments

@jorgenskogmo
Copy link

Ideally, there should be an option to create a "real" fullscreen window (chromeless, on-top),
instead of the current "lion fullscreen" mode wich can be exited by the user (by mousing to the top of the screen).

(Im working on a touchscreen app for public display...)

@respectTheCode
Copy link

You may want to play with Opera. It has a kiosk mode that I have used in the past that works really well.

@jorgenskogmo
Copy link
Author

yeah - but this is node-webkit, remember? ;-)

@kevsmt
Copy link

kevsmt commented Oct 8, 2012

I hope this is going to be supported "Kiosk Mode" very handy for fullscreen apps like Point Of Sale, etc.

@respectTheCode
Copy link

A "kiosk mode" is very different than just full screen. It needs to block closing the app and a bunch of keyboard shortcuts like alt-f4 / cmd-q, ctrl-alt-delete / cmd-opt-esc, win-l / cmd-shift-q and so on. I mentioned Opera because it's kiosk mode works well and they have a pretty detailed list of things that should be blocked.

http://www.opera.com/support/mastering/kiosk/

I agree that it would be nice to have as an option in node-webkit.

@jorgenskogmo
Copy link
Author

Sure, proper "kiosk mode" would be sweet, but "proper" fullscreen is all I really need.
(As it's a touchscreen app, no keyboard...)

@zcbenz
Copy link
Contributor

zcbenz commented Oct 9, 2012

I'll support "kiosk mode" or at least non-lion fullscreen mode in v0.3.1, it's interesting to use node-webkit for public display.

btw, using a Mac for public display is a bit luxurious for me...

@jorgenskogmo
Copy link
Author

Great!
(The Mac's are already in place.)
Can we expect the kiosk mode to be available on all platforms?

@kevsmt
Copy link

kevsmt commented Oct 9, 2012

@zcbenz This will be a choice for many already. I have chosen nw for R&D.. love your work guys!

@zcbenz
Copy link
Contributor

zcbenz commented Oct 10, 2012

Can we expect the kiosk mode to be available on all platforms?

Of course you can, node-webkit will try to provide best experiences on all platforms. But you have to wait since there're already many features waiting to be implemented.

@vorg
Copy link

vorg commented Oct 19, 2012

Using W3C Fullscreen API is much better idea in my opinion http://dvcs.w3.org/hg/fullscreen/raw-file/tip/Overview.html

@zcbenz
Copy link
Contributor

zcbenz commented Oct 22, 2012

There's already an issue #55 for HTML5 Fullscreen API, this issue is for a simple API to make the browser window fullscreen (which is much easier to implement) and support kiosk mode.

@jorgenskogmo
Copy link
Author

In 0.3 this is almost as I (we?) need it - if only the damn (OS X) Menubar would remain hidden when in fullscreen...

I added the following at line 240 in native_window_mac.mm to solve it:

if (!has_frame_) [NSMenu setMenuBarVisible:NO];

Any chance this can reach trunk?
Ideally with (yet) another window-setting in package.json?

zcbenz added a commit that referenced this issue Oct 25, 2012
@zcbenz
Copy link
Contributor

zcbenz commented Oct 25, 2012

A kiosk switch has been added in window-setting of package.json, and also Window.enterKioskMode() function in Window API.

Note only Mac has complete kiosk mode supported since it has kiosk system APIs, kiosk mode on Linux and Windows is the same with normal fullscreen mode. Disabling Alt+Tab or else needs low level hack and will make node-webkit behave like virus.

Kiosk mode will be launched in v0.3.1.

@zcbenz zcbenz closed this as completed Oct 25, 2012
@jorgenskogmo
Copy link
Author

Sweet!
I will need to hide the mouse too (in kiosk mode)

@Mithgol
Copy link
Contributor

Mithgol commented Oct 25, 2012

Give CSS3 cursor: none a try.

@jorgenskogmo
Copy link
Author

aha! Works like a charm. Thanks.

@asadpakistani
Copy link

I think the Koisk features like keyboard blocking should be left to os level for flexibility and not bloating the codebase.

@jorgenskogmo jorgenskogmo changed the title Wish: Non-lion Window.fullscreen (Mac) Wish: Non-lion Window.fullscreen (Mac) Apr 25, 2014
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

7 participants