]> git.saurik.com Git - wxWidgets.git/commitdiff
Set call event.SetEventObject() from commit_cb for wxKeyEvent
authorRobert Roebling <robert@roebling.de>
Fri, 11 May 2007 16:47:03 +0000 (16:47 +0000)
committerRobert Roebling <robert@roebling.de>
Fri, 11 May 2007 16:47:03 +0000 (16:47 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45962 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/window.cpp

index 0cb6276a0dac881f2e7dd8297544fe00c477246b..d88e7964eb133b21c587b6666504203f7b462df9 100644 (file)
@@ -1131,6 +1131,10 @@ gtk_wxwindow_commit_cb (GtkIMContext *context,
         wxFillOtherKeyEventFields(event,
                                   window, window->m_imData->lastKeyEvent);
     }
         wxFillOtherKeyEventFields(event,
                                   window, window->m_imData->lastKeyEvent);
     }
+    else
+    {
+        event.SetEventObject( window );
+    }
 
     const wxWxCharBuffer data(wxGTK_CONV_BACK_SYS(str));
     if( !data )
 
     const wxWxCharBuffer data(wxGTK_CONV_BACK_SYS(str));
     if( !data )