From 684191cd42e845575c0800557ede7b8547b0b2b5 Mon Sep 17 00:00:00 2001 From: FellippeHeitor Date: Thu, 22 Dec 2016 00:13:09 -0200 Subject: [PATCH] Created __UI_UnloadSignal (markdown) --- __UI_UnloadSignal.md | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 __UI_UnloadSignal.md diff --git a/__UI_UnloadSignal.md b/__UI_UnloadSignal.md new file mode 100644 index 0000000..0370d9d --- /dev/null +++ b/__UI_UnloadSignal.md @@ -0,0 +1,3 @@ +The [[global variable|Global variables]] __UI_UnloadSignal will be set to True if the user requested the program to be closed, either by clicking the X button on the title bar or by hitting Alt+F4 (Windows only). + +In an [[BeforeUnload]] event, set this variable to False to cancel the quit request. \ No newline at end of file