| 7675 | |
| 7676 | |
| 7677 | void 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 |
no outgoing calls
no test coverage detected