From 6d5ac78eeecb20bec4b4fc8daae008686bc75742 Mon Sep 17 00:00:00 2001 From: Abderrahmane Smimite Date: Mon, 16 Dec 2024 13:31:45 +0100 Subject: [PATCH] disable for now - strange conflict for some sections --- frontend/src/lib/components/DetailView/DetailView.svelte | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/frontend/src/lib/components/DetailView/DetailView.svelte b/frontend/src/lib/components/DetailView/DetailView.svelte index a3957206d..acaf95bfa 100644 --- a/frontend/src/lib/components/DetailView/DetailView.svelte +++ b/frontend/src/lib/components/DetailView/DetailView.svelte @@ -79,10 +79,11 @@ function handleKeydown(event: KeyboardEvent) { if (event.metaKey || event.ctrlKey) return; // Check if the pressed key is 'e' and the edit button should be displayed - if (event.key === 'e' && displayEditButton()) { - event.preventDefault(); - goto(`${$page.url.pathname}/edit?next=${$page.url.pathname}`); - } + + // if (event.key === 'e' && displayEditButton()) { + // event.preventDefault(); + // goto(`${$page.url.pathname}/edit?next=${$page.url.pathname}`); + //} } onMount(() => {