src/Builder4/WindowLeftTree.bjs
authorAlan <alan@roojs.com>
Thu, 25 Jan 2024 09:50:41 +0000 (17:50 +0800)
committerAlan <alan@roojs.com>
Thu, 25 Jan 2024 09:50:41 +0000 (17:50 +0800)
src/Builder4/WindowLeftTree.vala

src/Builder4/WindowLeftTree.bjs
src/Builder4/WindowLeftTree.vala

index 3e990df..02567b7 100644 (file)
           "motion" : [
            "(  x, y) => {",
            " ",
-           "\tvar is_shift = _this.keystate.is_shift;",
+           "\tvar is_shift = _this.keystate.is_shift > 0;",
            "\t",
            "\tGLib.debug(\"shift is  %d, %s\", _this.keystate.is_shift ? \"SHIFT\" : \"-\");",
            "\tstring pos; // over / before / after..",
index 83d6221..ca6c58d 100644 (file)
@@ -954,7 +954,7 @@ public class Xcls_WindowLeftTree : Object
                        });
                        this.el.motion.connect( (  x, y) => {
                         
-                               var is_shift = _this.keystate.is_shift;
+                               var is_shift = _this.keystate.is_shift > 0;
                                
                                GLib.debug("shift is  %d, %s", _this.keystate.is_shift ? "SHIFT" : "-");
                                string pos; // over / before / after..