Set the window id for key events
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31249 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
1729813a8d
commit
cfa8c7d6cc
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user