From cef1810700db033903651ecd9c108dde9f20e536 Mon Sep 17 00:00:00 2001 From: Marcel Date: Sun, 5 Apr 2026 22:43:37 +0200 Subject: [PATCH] fix(comments): stop Escape propagation in edit mode Pressing Escape while editing a comment now only cancels the edit, without propagating to the parent (which closes the transcribe panel). Co-Authored-By: Claude Sonnet 4.6 --- frontend/src/lib/components/CommentThread.svelte | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/lib/components/CommentThread.svelte b/frontend/src/lib/components/CommentThread.svelte index 8725bd09..c4b78747 100644 --- a/frontend/src/lib/components/CommentThread.svelte +++ b/frontend/src/lib/components/CommentThread.svelte @@ -169,6 +169,7 @@ function handleEditKeydown(e: KeyboardEvent, commentId: string) { e.preventDefault(); saveEdit(commentId); } else if (e.key === 'Escape') { + e.stopPropagation(); cancelEdit(); } }