[gnome-robots/arnaudb/wip/gtk4: 27/36] Replace MOD1 by ALT.




commit 4ef0154b0f0ea466a4be37beeea03dab02a10553
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Mon May 25 20:52:57 2020 +0200

    Replace MOD1 by ALT.

 src/keyboard.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/keyboard.c b/src/keyboard.c
index 04aa968..5aecd04 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -90,7 +90,7 @@ keyboard_cb (GtkEventControllerKey *controller,
    * if N is used as a key, then Ctrl-N is never picked up. The cleaner
    * option, making the signal a connect_after signal skims the arrow keys
    * before we can get to them which is a bigger problem. */
-  if (state & (GDK_CONTROL_MASK | GDK_MOD1_MASK))
+  if (state & (GDK_CONTROL_MASK | GDK_ALT_MASK))
     return FALSE;
 
   keyval = toupper (keyval);


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