From: Stefan Csomor Date: Mon, 21 Aug 2006 15:57:08 +0000 (+0000) Subject: still overriding the escape key X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/ab718f6e4c3c3907d1459c7caa3d850508cb9763 still overriding the escape key git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40720 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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;