From a7b15169f9e27a66a224ac707bea3024612dd3ea Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 6 Jul 2008 23:57:23 +0000 Subject: [PATCH] fix focus problems in picker controls under MSW which were due to not letting the system process kill focus for the text part of the control (#9687) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54520 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/pickerbase.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/pickerbase.cpp b/src/common/pickerbase.cpp index 53ec72d19e..0176c2a2a8 100644 --- a/src/common/pickerbase.cpp +++ b/src/common/pickerbase.cpp @@ -144,9 +144,9 @@ void wxPickerBase::DoSetToolTip(wxToolTip *tip) // wxPickerBase - event handlers // ---------------------------------------------------------------------------- -void wxPickerBase::OnTextCtrlKillFocus(wxFocusEvent &) +void wxPickerBase::OnTextCtrlKillFocus(wxFocusEvent& event) { - wxASSERT(m_text); + event.Skip(); // don't leave the textctrl empty if (m_text->GetValue().empty()) -- 2.45.2