From fa00fd24f0f3f1226d5a26127867e88aaffb833f Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 23 May 2021 14:05:03 +0100 Subject: [PATCH] Fix event origin for wxEVT_CHAR from wxCompositeWindow children Use the just added wxEventObjectOriginSetter to set the event object and ID to that of wxCompositeWindow itself, rather than that of the child window where the event had actually occurred. --- include/wx/compositewin.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/wx/compositewin.h b/include/wx/compositewin.h index 23ee6f738b..a5d93b02bf 100644 --- a/include/wx/compositewin.h +++ b/include/wx/compositewin.h @@ -223,6 +223,8 @@ private: void OnChar(wxKeyEvent& event) { + wxEventObjectOriginSetter setThis(event, this, this->GetId()); + if ( !this->ProcessWindowEvent(event) ) event.Skip(); }