yes
mellobacon committed
Nov 27, 2022 at 18:53 UTC
a38af45ef7c139795428b0612a1ed312f58171ec
1 file changed
+2
-2
src/components/FileTree/TreeViewNode.svelte
+2
-2
@@ -46,7 +46,7 @@
46
let refLabel = null;
47
let prevActiveId = undefined;
48
49
- const { activeNodeId, selectedNodeIds, clickNode, selectNode, focusNode, rightClickNode } =
49
+ const { isFileTree, activeNodeId, selectedNodeIds, clickNode, selectNode, focusNode, rightClickNode } =
50
getContext("TreeView");
51
const offset = () =>
52
computeTreeLeafDepth(refLabel) + (leaf && icon ? 2 : 2.5);
@@ -95,7 +95,7 @@
95
if (e.button === 2) {
96
selectNode(node);
97
rightClickNode(node);
98
- contextmenu = true;
98
+ if (isFileTree) contextmenu = true;
99
}
100
}}
101
on:keydown|stopPropagation={(e) => {