git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34521
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxKeyEvent event( wxEVT_KEY_DOWN );
bool ret = false;
bool return_after_IM = false;
wxKeyEvent event( wxEVT_KEY_DOWN );
bool ret = false;
bool return_after_IM = false;
- win->m_imData->lastKeyEvent = gdk_event;
if( wxTranslateGTKKeyEventToWx(event, win, gdk_event) )
{
if( wxTranslateGTKKeyEventToWx(event, win, gdk_event) )
{
{
wxASSERT_MSG( (m_widget != NULL), wxT("invalid window") );
{
wxASSERT_MSG( (m_widget != NULL), wxT("invalid window") );
-#ifdef __WXGTK20__
- // Create input method handler
- m_imData = new wxGtkIMData;
-#endif
-
if (m_wxwindow)
{
if (!m_noExpose)
if (m_wxwindow)
{
if (!m_noExpose)
+ // Create input method handler
+ m_imData = new wxGtkIMData;
+
// Cannot handle drawing preedited text yet
gtk_im_context_set_use_preedit( m_imData->context, FALSE );
// Cannot handle drawing preedited text yet
gtk_im_context_set_use_preedit( m_imData->context, FALSE );
wxKeyEvent event( wxEVT_KEY_DOWN );
bool ret = false;
bool return_after_IM = false;
wxKeyEvent event( wxEVT_KEY_DOWN );
bool ret = false;
bool return_after_IM = false;
- win->m_imData->lastKeyEvent = gdk_event;
if( wxTranslateGTKKeyEventToWx(event, win, gdk_event) )
{
if( wxTranslateGTKKeyEventToWx(event, win, gdk_event) )
{
{
wxASSERT_MSG( (m_widget != NULL), wxT("invalid window") );
{
wxASSERT_MSG( (m_widget != NULL), wxT("invalid window") );
-#ifdef __WXGTK20__
- // Create input method handler
- m_imData = new wxGtkIMData;
-#endif
-
if (m_wxwindow)
{
if (!m_noExpose)
if (m_wxwindow)
{
if (!m_noExpose)
+ // Create input method handler
+ m_imData = new wxGtkIMData;
+
// Cannot handle drawing preedited text yet
gtk_im_context_set_use_preedit( m_imData->context, FALSE );
// Cannot handle drawing preedited text yet
gtk_im_context_set_use_preedit( m_imData->context, FALSE );