Add context menu to breadcrumbs

This commit is contained in:
2026-02-26 14:47:01 +01:00
parent d756d545db
commit 00b432f3dc
4 changed files with 42 additions and 22 deletions

View File

@@ -54,7 +54,11 @@ onMount(() => {
const keydown = (e: KeyboardEvent) => {
if (e.ctrlKey || e.altKey || e.metaKey) {
return // prevent custom shortcuts from interfering with system shortcuts
} else if ((document.activeElement as any).type !== undefined && (document.activeElement as any).type === "text") {
} else if (
(document.activeElement as any).type !== undefined &&
(document.activeElement as any).type === "text" &&
(document.activeElement as any).type === "textarea"
) {
return // Prevent shortcuts from interfering with input fields
}
@@ -131,7 +135,7 @@ const keydown = (e: KeyboardEvent) => {
<svelte:window onkeydown={keydown} />
<div class="filesystem">
<Breadcrumbs nav={nav}/>
<Breadcrumbs nav={nav} edit_window={edit_window}/>
<div class="file_preview">
<FilePreview