Files
wxWidgets/include/wx
Vadim Zeitlin 4cf1a9bf4a Ensure that Enter key presses are never stolen from wxButton in wxMSW.
This commit fixes the following bug: when an in-place editor control containing
an embedded button was used in wxDataViewCtrl, pressing Enter on the button
would close the editor, accepting changes, instead as (generic) wxDataViewCtrl
intercepts WXK_RETURN in its EVT_CHAR_HOOK handler. To prevent this from
happening, wxButton now handles EVT_CHAR_HOOK itself and never lets the parent
window intercept it if it's for WXK_RETURN. To ensure that normal
wxEVT_KEY_DOWN and wxEVT_CHAR are still generated in this case, wxButton
handler calls the new wxKeyEvent::DoAllowNextEvent() method that was added to
allow suppressing EVT_CHAR_HOOK only, without affecting the subsequent events.
DoAllowNextEvent() is currently only used in wxMSW but support for it was also
added to wxGTK and (both) wxOSX ports.

See #9102.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69984 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-12-11 17:03:56 +00:00
..
2011-10-18 21:57:02 +00:00
2011-10-18 21:57:02 +00:00
2011-10-18 21:57:02 +00:00
2011-10-18 21:57:02 +00:00
2011-08-16 11:55:39 +00:00
2009-12-05 19:57:58 +00:00
2011-01-07 17:22:59 +00:00
2010-11-07 13:16:20 +00:00
2011-03-22 14:17:38 +00:00
2011-10-18 21:57:02 +00:00
2010-11-07 13:16:20 +00:00
2011-09-30 14:00:52 +00:00
2009-07-23 20:30:22 +00:00
2011-09-29 13:43:15 +00:00
2011-09-29 13:43:15 +00:00
2009-07-23 20:30:22 +00:00
2011-03-22 14:17:38 +00:00
2011-04-03 20:31:32 +00:00
2011-08-19 10:45:16 +00:00
2010-04-16 10:43:18 +00:00
2010-07-23 23:32:46 +00:00
2009-07-23 20:30:22 +00:00
2011-01-04 08:31:53 +00:00
2011-03-22 14:17:38 +00:00
2010-12-14 18:43:49 +00:00
2011-01-26 15:53:31 +00:00
2011-08-27 14:11:03 +00:00
2010-05-06 12:40:11 +00:00
2009-01-17 13:38:04 +00:00
2011-03-22 14:17:38 +00:00
2009-07-23 20:30:22 +00:00
2011-01-04 08:31:53 +00:00
2011-01-08 08:03:42 +00:00
2009-07-23 20:30:22 +00:00
2010-11-07 13:16:20 +00:00
2011-01-07 17:42:39 +00:00
2011-04-03 20:31:32 +00:00
2009-07-23 20:30:22 +00:00
2009-01-02 17:29:32 +00:00
2010-08-18 22:48:41 +00:00
2009-07-23 20:30:22 +00:00
2011-10-18 21:57:02 +00:00
2009-07-23 20:30:22 +00:00
2011-01-07 17:42:39 +00:00
2010-06-26 11:43:13 +00:00
2011-03-22 14:17:38 +00:00
2011-03-22 14:17:38 +00:00
2011-03-22 14:17:38 +00:00
2011-03-22 14:17:38 +00:00
2011-09-29 13:43:15 +00:00
2009-07-23 20:30:22 +00:00
2011-07-22 16:32:07 +00:00
2009-07-23 20:30:22 +00:00
2011-03-22 14:17:38 +00:00
2011-01-07 22:52:46 +00:00
2011-01-07 17:43:12 +00:00
2011-01-07 17:22:59 +00:00
2011-03-30 14:15:53 +00:00
2011-01-07 17:22:59 +00:00