[gtk/imcontext-modifier-intent] imcontextsimple: Bring back modifier intent




commit 8780cde9192ef6417a192d51d8a906eed65d054a
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Feb 16 19:31:17 2021 -0500

    imcontextsimple: Bring back modifier intent
    
    This was lost by accident in 85d34932f3888caecd4b.

 gtk/gtkimcontextsimple.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
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;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]