2 Commits

Author SHA1 Message Date
vcoppe
88c9abb78e open collapsible if an item item is selected 2025-11-11 09:31:08 +01:00
vcoppe
1729a2f734 remove dead code 2025-11-11 09:29:07 +01:00
2 changed files with 5 additions and 21 deletions

View File

@@ -644,16 +644,6 @@
} else if (e.key === 'F5') {
$routing = !$routing;
e.preventDefault();
} else if (
e.key === 'ArrowRight' ||
e.key === 'ArrowDown' ||
e.key === 'ArrowLeft' ||
e.key === 'ArrowUp'
) {
if (!targetInput) {
// updateSelectionFromKey(e.key === 'ArrowRight' || e.key === 'ArrowDown', e.shiftKey);
e.preventDefault();
}
}
}}
on:dragover={(e) => e.preventDefault()}

View File

@@ -58,17 +58,11 @@
const { treeFileView } = settings;
// function openIfSelectedChild() {
// if (collapsible && $treeFileView && $selection.hasAnyChildren(item, false)) {
// collapsible.openNode();
// }
// }
// if ($selection) {
// openIfSelectedChild();
// }
// afterUpdate(openIfSelectedChild);
$effect(() => {
if (collapsible && $treeFileView && $selection.hasAnyChildren(item, false)) {
collapsible.openNode();
}
});
</script>
{#if node instanceof Map}