phpdesktop icon indicating copy to clipboard operation
phpdesktop copied to clipboard

Confirm on close

Open cztomczak opened this issue 8 years ago • 3 comments

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

cztomczak avatar Aug 27 '16 08:08 cztomczak

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.

alissonpelizaro avatar Mar 12 '18 17:03 alissonpelizaro

Pull requests are welcome.

cztomczak avatar Mar 12 '18 19:03 cztomczak

A simple handling of close event would do the trick. This issues is from 2016, any news how to get this working in Chrome47?

SiL3NC3 avatar Jun 11 '18 08:06 SiL3NC3