* src/gtkutil.c (xg_filter_key): Test for core key press events
correctly.
* src/xterm.c (handle_one_xevent): Also check for KeyRelease
events.
bool
xg_filter_key (struct frame *frame, XEvent *xkey)
{
- GdkEvent *xg_event = gdk_event_new ((xkey->type == ButtonPress
+ GdkEvent *xg_event = gdk_event_new ((xkey->type == KeyPress
#ifdef HAVE_XINPUT2
|| (xkey->type == GenericEvent
&& xkey->xgeneric.evtype == XI_KeyPress)
#ifdef USE_GTK
}
else if (f1 && (event->type == KeyPress
+ || event->type == KeyRelease
#ifdef HAVE_XINPUT2
|| xinput_event
#endif