forked from AuroraMiddleware/gtk
gtk: enable setting virtual modifiers in GtkCellRendererAccel
Call gdk_keymap_add_virtual_modifiers() on event->state, so virtual modifiers get added at all.
This commit is contained in:
parent
a350b667c1
commit
be1eea612c
@ -427,11 +427,14 @@ grab_key_callback (GtkWidget *widget,
|
||||
event->group,
|
||||
NULL, NULL, NULL, &consumed_modifiers);
|
||||
|
||||
accel_mods = event->state;
|
||||
gdk_keymap_add_virtual_modifiers (gdk_keymap_get_for_display (display), &accel_mods);
|
||||
|
||||
accel_key = gdk_keyval_to_lower (event->keyval);
|
||||
if (accel_key == GDK_ISO_Left_Tab)
|
||||
accel_key = GDK_Tab;
|
||||
|
||||
accel_mods = event->state & gtk_accelerator_get_default_mod_mask ();
|
||||
accel_mods &= gtk_accelerator_get_default_mod_mask ();
|
||||
|
||||
/* Filter consumed modifiers
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user