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




commit 8c441756df67f06d97789c14fb8b7717dfc97b70
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 0338b3f187..b695d96a0d 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]