Skip to content

Commit

Permalink
disable e shortcut for now - strange conflict for some sections (#1197)
Browse files Browse the repository at this point in the history
  • Loading branch information
ab-smith authored Dec 16, 2024
1 parent 3ae5fc6 commit e141baa
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions frontend/src/lib/components/DetailView/DetailView.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand Down

0 comments on commit e141baa

Please sign in to comment.