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

win.leaveKioskMode() and win.toggleKioskMode() not working #7272

Closed
l585826 opened this issue Dec 13, 2019 · 2 comments
Closed

win.leaveKioskMode() and win.toggleKioskMode() not working #7272

l585826 opened this issue Dec 13, 2019 · 2 comments
Labels

Comments

@l585826
Copy link

l585826 commented Dec 13, 2019

NWJS Version : nwjs-v0.43.1-win-ia32
Operating System : Win10

win.leaveKioskMode() and win.toggleKioskMode() not working

<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8" />
	<script src="https://cdn.bootcss.com/jquery/3.4.1/jquery.min.js"></script>
	<!--<script>window.$ = window.jQuery = require('jquery-3.4.1.min.js');</script>-->
  <title>My OS Platform</title>
 <style>
 
* {

-webkit-touch-callout: none; /* iOS Safari */

-webkit-user-select: none; /* Chrome/Safari/Opera */

-khtml-user-select: none; /* Konqueror */

-moz-user-select: none; /* Firefox */

-ms-user-select: none; /* Internet Explorer/Edge */

user-select: none; /* Non-prefixed version, currently

not supported by any browser */

}
 </style>
 
</head>
<body>
	<h2>test</h2>
<script>


 var win = nw.Window.get();
 function enterKiosk(){ 
win.enterKioskMode();
 }
 function leaveKiosk(){ 
win.leaveKioskMode();
 }
  function toggleKiosk(){ 
win.toggleKioskMode()();
 }
    </script>

	<br>
	<div onclick="enterKiosk();" style="background: aqua;width: 80px;height: 50px;">enterKioskMode</div>
	<br>
	<br>
	<br>
	<div onclick="leaveKiosk();" style="background: aqua;width: 80px;height: `50px;">leaveKioskMode</div>`
		<br>
	<br>
	<br>
	<div onclick="toggleKiosk();" style="background: aqua;width: 80px;height: 50px;">toggleKioskMode</div>
	
	
</body>
</html>`
@rogerwang
Copy link
Member

This is fixed in git and will be available in the next nightly build.

@rogerwang rogerwang added the nw2 label Jan 12, 2020
@rogerwang
Copy link
Member

The nightly build for this issue is available at https://dl.nwjs.io/live-build/nw43/20200112-162000/425569548

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

No branches or pull requests

2 participants