Hi I'm commenting on here by request (on the Discord) about my issues with disabling the escape key for desktop builds using the Construct 3 NW.sj exporter, and also making manual builds using my own "NORMAL" NW.js downloads (all testing being done in NW.js version 0.41.1 Windowsx64). The problem is that NW.js documentation states that it does not set the escape key to be the default for exiting fullscreen, but when I build a game and have events set it to fullscreen it does cancel fullscreen when hitting the escape key. Some people want this for different reasons, but I don't I want my game to behave like hundreds of other native desktop games where escape pauses the game and brings up the menu screen (think Minecraft style). There will be options (right now I have the "F" key) to toggle fullscreen and it works great. And I am at the point where I am able to override the command by making a bool and setting the fullscreen after bool checking. So if I hit the ESC key, there's a flash and then it immediately goes back to fullscreen. But the escape key is being "locked up" in this default process somehow and I can't find anywhere where the ESC key is being set by C3 or any of the scripts.
I have found a couple of references that talk about the"The Event interface's preventDefault() method" from this site
https://developer.mozilla.org/en-US/docs/Web/API/Event/preventDefault
and I found the statement about the NW.js NOT setting this by default at this site: http://docs.nwjs.io/en/latest/For%20Users/FAQ/#how-to-leave-fullscreen-mode-with-esc-key
which specifically stated that this is NOT the default behavior of the APK.
I'm actually learning a lot by all of this research and was super happy to find this thread from the guys over on the Discord. Thanks for inviting me to post about this here, in the hopes that once it is figured out, then it might help other folks in the future.
If you require any other information just let me know and I'm happy to share any I can if it helps. Cheers!