In wxComboCtrlBase::OnTextCtrlEvent(), make sure to call event.StopPropagation()...
authorJaakko Salli <jaakko.salli@dnainternet.net>
Mon, 18 Apr 2011 10:03:16 +0000 (10:03 +0000)
committerJaakko Salli <jaakko.salli@dnainternet.net>
Mon, 18 Apr 2011 10:03:16 +0000 (10:03 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67530 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/combocmn.cpp

index aadf2c1104e8a2df88adda28ae9ca10e0f0d5881..5f79ec30ef16f73b6445600ded9c6aec52faecd8 100644 (file)
@@ -1770,13 +1770,13 @@ void wxComboCtrlBase::OnTextCtrlEvent(wxCommandEvent& event)
         }
     }
 
-    event.StopPropagation();
-
     // For safety, completely re-create a new wxCommandEvent
     wxCommandEvent evt2(event);
     evt2.SetId(GetId());
     evt2.SetEventObject(this);
     HandleWindowEvent(evt2);
+
+    event.StopPropagation();
 }
 
 // call if cursor is on button area or mouse is captured for the button