projects
/
wxWidgets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
684e5b9
)
map Esc to GetAffirmativeId() instead of hardcoded wxID_OK when escape id is wxID_ANY
author
Vadim Zeitlin
<vadim@wxwidgets.org>
Sun, 20 Aug 2006 10:39:55 +0000
(10:39 +0000)
committer
Vadim Zeitlin
<vadim@wxwidgets.org>
Sun, 20 Aug 2006 10:39:55 +0000
(10:39 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40702
c3d73ce0
-8a6f-49c7-b76d-
6d57e0e08775
src/common/dlgcmn.cpp
patch
|
blob
|
blame
|
history
diff --git
a/src/common/dlgcmn.cpp
b/src/common/dlgcmn.cpp
index 7fad04b64022e36fce07523fbfe02d516854a2f3..ec34631b674f4477bd9b18b319b5db9bf5734b86 100644
(file)
--- 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: