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:
parent
4701b68199
commit
21a7ac1820
@ -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) )
|
||||
{
|
||||
|
@ -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) )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user