Save the last key event so EVT_CHAR events can filled in with extra

data like mouse pos, timestamp, etc.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34504 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn 2005-06-02 03:32:32 +00:00
parent 4701b68199
commit 21a7ac1820
2 changed files with 2 additions and 0 deletions

View 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) )
{

View 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) )
{