MCPcopy Create free account
hub / github.com/AutoHotkey/AutoHotkey / Escape

Method Escape

source/script_gui.cpp:7677–7686  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7675
7676
7677void GuiType::Escape() // Similar to close, except typically called when the user presses ESCAPE.
7678// If there is an OnEscape event handler defined, launch it as a new thread.
7679{
7680 if (!IsMonitoring(GUI_EVENT_ESCAPE)) // The user preference (via votes on forum poll) is to do nothing by default.
7681 return;
7682 // See lengthy comments in Event() about this section:
7683 POST_AHK_GUI_ACTION(mHwnd, NO_CONTROL_INDEX, GUI_EVENT_ESCAPE, NO_EVENT_INFO);
7684 // MsgSleep() is not done because "case AHK_GUI_ACTION" in GuiWindowProc() takes care of it.
7685 // See its comments for why.
7686}
7687
7688
7689

Callers 2

GuiWindowProcFunction · 0.80
MsgSleepFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected