]> _ Git - fluidbook-toolbox.git/commitdiff
wait #6045 @0:10
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 19 Jun 2023 16:47:25 +0000 (18:47 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 19 Jun 2023 16:47:25 +0000 (18:47 +0200)
resources/linkeditor/js/linkeditor.layers.js
resources/linkeditor/style/inc/_layers.sass

index 07543d180eca19a06f5369eac7484a29f3f6b4f6..dc794a506dc13f06ebd84e6789f3400cf044fbd2 100644 (file)
@@ -14,11 +14,20 @@ LinkeditorLayers.prototype = {
                 return false;
             }
             let uid = $(this).find('input').attr('name');
+            let checked = $(this).find('input').prop('checked');
             var link = $('#linkeditor-links [fb-uid="' + uid + '"]');
+
             if (!e.ctrlKey) {
                 $this.linkeditor.links.deselectAllLinks();
+                $this.linkeditor.links.selectLink(link);
+            } else {
+                if (checked) {
+                    $this.linkeditor.links.deselectLink(link);
+                } else {
+                    $this.linkeditor.links.selectLink(link);
+                }
             }
-            $this.linkeditor.links.selectLink(link);
+
             $this.linkeditor.form.updateLinkForm();
             return false;
         });
index ac571857cd41f3015d7671a5b3bb88e82af103b1..b4d8b89b1c7cd95508ec899e329b66c0ce076fbe 100644 (file)
@@ -1,6 +1,8 @@
 #linkeditor-panel-layers
     font-size: 11px
     color: $color
+    user-select: none
+
     @include dark-theme
         color: $color-dark