[gtk/ignore-nosymbol-press-4-2] imcontext: Ignore NoSymbol key events




commit c12f1ebebb0adcd9cfa2c26f47f37fa90de9ead8
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue May 25 13:17:41 2021 -0400

    imcontext: Ignore NoSymbol key events
    
    These can happen with some XKB options.
    
    Fixes: #3973

 gtk/gtkimcontextsimple.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/gtk/gtkimcontextsimple.c b/gtk/gtkimcontextsimple.c
index 1fe08f5122..d65dbdb3de 100644
--- a/gtk/gtkimcontextsimple.c
+++ b/gtk/gtkimcontextsimple.c
@@ -90,6 +90,7 @@ G_LOCK_DEFINE_STATIC (global_tables);
 static GSList *global_tables;
 
 static const guint16 gtk_compose_ignore[] = {
+  0, /* Yes, XKB will send us key press events with NoSymbol :( */
   GDK_KEY_Shift_L,
   GDK_KEY_Shift_R,
   GDK_KEY_Control_L,


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