phpdesktop
phpdesktop copied to clipboard
Confirm on close
A way to prevent accidental closing of app window. Related topic on the Forum:
https://groups.google.com/d/topic/phpdesktop/giHxE-z18L8/discussion
For javascript events 'onunload' and 'onbeforeunload' to work when closing app window additional logic needs to be implemented. See comments for CefLifeSpanHandler::DoClose:
https://bitbucket.org/chromiumembedded/cef/src/9ee4db6dbb3837cab08d25a35c1f86744c03bc32/include/cef_life_span_handler.h?at=master#cef_life_span_handler.h-98
We have news about it? How to prevent a close app window? I think the Javascript event to prevent close app window don't work in this case, cause they are invoqued when the close command already had done.
Maybe if we can to remove the close button of the window, or hide the window bar.
Pull requests are welcome.
A simple handling of close event would do the trick. This issues is from 2016, any news how to get this working in Chrome47?