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
This commit is contained in:
Vadim Zeitlin
2006-08-20 10:39:55 +00:00
parent 684e5b95a6
commit 153a0b7831

View File

@@ -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: