[gtk/ignore-nosymbol-press-3-24] imcontext: Ignore NoSymbol key events




commit 6baf287c5f84b2cf601d80ca517a3590384591c3
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 0ca1843976..bec92be4c5 100644
--- a/gtk/gtkimcontextsimple.c
+++ b/gtk/gtkimcontextsimple.c
@@ -85,6 +85,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]