Add context menu to breadcrumbs
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user