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.
(cherry picked from commit be1eea612c
)
This commit is contained in:
parent
b01e20f1d1
commit
3fd7dbc940
@ -471,11 +471,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_KEY_ISO_Left_Tab)
|
||||
accel_key = GDK_KEY_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