NWJS SDK 0.23.6 confirm to exit not responding mouse clicks
See original GitHub issueI’m trying to create a confirm message to close the main window using the confirm()
function.
The problem is that when the confirmation appears it freezes to mouse events. I need to press ENTER or SPACE to confirm and ESC to cancel.
Example:
package.json
{
"name": "test",
"version": "0.0.1",
"main": "index.html"
}
index.html
<html>
<head>
<script>
var gui = require('nw.gui');
gui.Window.get().on('close', function() {
var r = confirm("Do you really want to leave?");
if (r == true) {
this.close(true);
}
});
</script>
</head>
<body>
Close and confirm with mouse click on OK!
</body>
</html>
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Gentoo Linux - DistroWatch.com
Gentoo Linux is a versatile and fast, completely free Linux distribution geared towards developers and network professionals. Unlike other distros, Gentoo ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks. Close as it’s fixed in 0.23.7.
I’ve tested with latest http://dl.nwjs.io/v0.23.7/ it works