diff --git a/include/wx/mac/carbon/dialog.h b/include/wx/mac/carbon/dialog.h index ffe6c9ebc5..aadb9849b7 100644 --- a/include/wx/mac/carbon/dialog.h +++ b/include/wx/mac/carbon/dialog.h @@ -72,6 +72,9 @@ public: // may be called to terminate the dialog with the given return code virtual void EndModal(int retCode); + // mac also takes command-period as cancel + virtual bool IsEscapeKey(const wxKeyEvent& event); + // returns TRUE if we're in a modal loop bool IsModalShowing() const;