Call wxKeyEvent::SetEventObject() if no last key event

available from which it is otherwise copied.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45963 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2007-05-11 16:48:46 +00:00
parent dad1c9b9ae
commit 1e3847f4b9

View File

@@ -1157,6 +1157,10 @@ gtk_wxwindow_commit_cb (GtkIMContext *context,
wxFillOtherKeyEventFields(event,
window, window->m_imData->lastKeyEvent);
}
else
{
event.SetEventObject( window );
}
const wxWxCharBuffer data(wxGTK_CONV_BACK(str));
if( !data )