From 153a0b7831e1eab3e8823f157b3337b66a6e9473 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 20 Aug 2006 10:39:55 +0000 Subject: [PATCH] map Esc to GetAffirmativeId() instead of hardcoded wxID_OK when escape id is wxID_ANY git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40702 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/dlgcmn.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/dlgcmn.cpp b/src/common/dlgcmn.cpp index 7fad04b640..ec34631b67 100644 --- a/src/common/dlgcmn.cpp +++ b/src/common/dlgcmn.cpp @@ -551,7 +551,7 @@ void wxDialogBase::OnCharHook(wxKeyEvent& event) // but if there is no such button, then fall back to wxID_OK if ( EmulateButtonClickIfPresent(wxID_CANCEL) ) return; - idCancel = wxID_OK; + idCancel = GetAffirmativeId(); // fall through default: -- 2.47.2