]> git.saurik.com Git - wxWidgets.git/commitdiff
Save the last key event so EVT_CHAR events can filled in with extra
authorRobin Dunn <robin@alldunn.com>
Thu, 2 Jun 2005 03:32:32 +0000 (03:32 +0000)
committerRobin Dunn <robin@alldunn.com>
Thu, 2 Jun 2005 03:32:32 +0000 (03:32 +0000)
data like mouse pos, timestamp, etc.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34504 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/window.cpp
src/gtk1/window.cpp

index 950f84f25afb1bb1cdf119d445ff12792e06bb15..a0acf3aa000887eda9e454dbfe78a879a0240df7 100644 (file)
@@ -1165,6 +1165,7 @@ static gint gtk_window_key_press_callback( GtkWidget *widget,
     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) )
     {
index 950f84f25afb1bb1cdf119d445ff12792e06bb15..a0acf3aa000887eda9e454dbfe78a879a0240df7 100644 (file)
@@ -1165,6 +1165,7 @@ static gint gtk_window_key_press_callback( GtkWidget *widget,
     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) )
     {