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

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

index 83177d9..6ea58b8 100644 (file)
            "\t\t\t\tGLib.debug(\"drop  contains %s - using %s\" , node.parent.fqn(), pos);",
            "\t\t\t}",
            " \t\t}",
+           " \t\tif (_this.view.dropNode  != null && is_shift) {",
+           " \t\t\tif (node.oid = _this.view.dropNode.oid || node.has_parent(_this.view.dropNode()) {",
+           " \t\t\t\tthis.addHighlight(null, \"\");",
+           " \t\t\t\treturn Gdk.DragAction.COPY;\t",
+           " \t\t\t}",
+           " \t\t\t",
+           " \t\t}",
            " \t\t",
            " \t}",
            " \tif (pos == \"over\") {",
index 51147f4..c2c6765 100644 (file)
@@ -1036,6 +1036,13 @@ public class Xcls_WindowLeftTree : Object
                                                        GLib.debug("drop  contains %s - using %s" , node.parent.fqn(), pos);
                                                }
                                        }
+                                       if (_this.view.dropNode  != null && is_shift) {
+                                               if (node.oid = _this.view.dropNode.oid || node.has_parent(_this.view.dropNode()) {
+                                                       this.addHighlight(null, "");
+                                                       return Gdk.DragAction.COPY;     
+                                               }
+                                               
+                                       }
                                        
                                }
                                if (pos == "over") {