diff --git a/src/gtk/window.cpp b/src/gtk/window.cpp index 32fdde9a84..48f04ab5b3 100644 --- a/src/gtk/window.cpp +++ b/src/gtk/window.cpp @@ -960,6 +960,7 @@ static void wxFillOtherKeyEventFields(wxKeyEvent& event, gdk_window_get_pointer(gdk_event->window, &x, &y, &state); event.SetTimestamp( gdk_event->time ); + event.SetId(win->GetId()); event.m_shiftDown = (gdk_event->state & GDK_SHIFT_MASK) != 0; event.m_controlDown = (gdk_event->state & GDK_CONTROL_MASK) != 0; event.m_altDown = (gdk_event->state & GDK_MOD1_MASK) != 0; diff --git a/src/gtk1/window.cpp b/src/gtk1/window.cpp index 32fdde9a84..48f04ab5b3 100644 --- a/src/gtk1/window.cpp +++ b/src/gtk1/window.cpp @@ -960,6 +960,7 @@ static void wxFillOtherKeyEventFields(wxKeyEvent& event, gdk_window_get_pointer(gdk_event->window, &x, &y, &state); event.SetTimestamp( gdk_event->time ); + event.SetId(win->GetId()); event.m_shiftDown = (gdk_event->state & GDK_SHIFT_MASK) != 0; event.m_controlDown = (gdk_event->state & GDK_CONTROL_MASK) != 0; event.m_altDown = (gdk_event->state & GDK_MOD1_MASK) != 0;