diff --git a/src/gtk/window.cpp b/src/gtk/window.cpp index 0cb6276a0d..d88e7964eb 100644 --- a/src/gtk/window.cpp +++ b/src/gtk/window.cpp @@ -1131,6 +1131,10 @@ gtk_wxwindow_commit_cb (GtkIMContext *context, wxFillOtherKeyEventFields(event, window, window->m_imData->lastKeyEvent); } + else + { + event.SetEventObject( window ); + } const wxWxCharBuffer data(wxGTK_CONV_BACK_SYS(str)); if( !data )