]> git.saurik.com Git - wxWidgets.git/commit - src/mac/carbon/dialog.cpp
centralized Esc key handling for closing the dialogs in wxDialogBase:
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 19 Aug 2006 22:36:10 +0000 (22:36 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 19 Aug 2006 22:36:10 +0000 (22:36 +0000)
commit0be274189380d9de3c60836dab2fc080f21f88ee
tree3f86bd0f91efeb375b7281b318339b0209fdf593
parent8f4931874c9a832e8d6cc4fe47dd8bbbf943a418
centralized Esc key handling for closing the dialogs in wxDialogBase:
1. added wxDialogBase::OnCharHook() and removed this event handler from
   all the other ports
2. also removed ad hoc code doing the same thing in wxMSW (MSWProcessMessage()
   override in wxDialog) and wxGTK (in gtk_window_key_press_callback())
3. reimplemented EmulateButtonClickIfPresent() portably and also moved it
   to wxDialogBase from wxMSW wxDialog

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40686 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
12 files changed:
include/wx/dialog.h
include/wx/gtk/dialog.h
include/wx/mac/carbon/dialog.h
include/wx/motif/dialog.h
include/wx/msw/dialog.h
include/wx/os2/dialog.h
src/common/dlgcmn.cpp
src/gtk/window.cpp
src/mac/carbon/dialog.cpp
src/motif/dialog.cpp
src/msw/dialog.cpp
src/os2/dialog.cpp