summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-02-16 19:31:17 -0500
committerMatthias Clasen <mclasen@redhat.com>2021-02-16 19:31:17 -0500
commit8780cde9192ef6417a192d51d8a906eed65d054a (patch)
tree585228a79f5d8d28a0f7026663ed04f0a62362d0
parent03b97b0a8bb57747bd94e16e308c04189b69acdf (diff)
downloadgtk+-imcontext-modifier-intent.tar.gz
imcontextsimple: Bring back modifier intentimcontext-modifier-intent
This was lost by accident in 85d34932f3888caecd4b.
-rw-r--r--gtk/gtkimcontextsimple.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk/gtkimcontextsimple.c b/gtk/gtkimcontextsimple.c
index e1319a79a8..627ed71c23 100644
--- a/gtk/gtkimcontextsimple.c
+++ b/gtk/gtkimcontextsimple.c
@@ -596,7 +596,9 @@ gtk_im_context_simple_filter_keypress (GtkIMContext *context,
if (event->keyval == gtk_compose_ignore[i])
return FALSE;
- hex_mod_mask = GDK_CONTROL_MASK|GDK_SHIFT_MASK;
+ hex_mod_mask = gdk_keymap_get_modifier_mask (gdk_keymap_get_for_display (display),
+ GDK_MODIFIER_INTENT_PRIMARY_ACCELERATOR);
+ hex_mod_mask |= GDK_SHIFT_MASK;
if (priv->in_hex_sequence && priv->modifiers_dropped)
have_hex_mods = TRUE;