[gnome-text-editor] sourceview: fix reorder and switch handling



commit 4e4217566e3c6c76824fc0da05db5e518a3d738f
Author: Christian Hergert <chergert redhat com>
Date:   Wed Sep 8 11:52:08 2021 -0700

    sourceview: fix reorder and switch handling
    
    Fixes #140

 src/editor-source-view.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/editor-source-view.c b/src/editor-source-view.c
index 8187cf9..6327bd1 100644
--- a/src/editor-source-view.c
+++ b/src/editor-source-view.c
@@ -111,7 +111,7 @@ on_key_pressed_cb (GtkEventControllerKey *key,
   if ((state & GDK_CONTROL_MASK) == 0)
     return FALSE;
 
-  if (state & ~(GDK_CONTROL_MASK|GDK_SHIFT_MASK))
+  if ((state & (GDK_CONTROL_MASK|GDK_SHIFT_MASK)) == 0)
     return FALSE;
 
   switch (keyval)


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