From 4933179c8986886b92e5d86e731d55456dde60a6 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 5 Nov 2026 13:15:32 +0000 Subject: [PATCH] =?UTF-8?q?[66]=20Pr=C3=A4sentationsplan:=20Enter=20aus=20?= =?UTF-8?q?der=20Befehlszeile=20best=C3=A4tigt=20den=20Dialog=20nicht?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ui/PresentationDialog.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ui/PresentationDialog.tsx b/src/ui/PresentationDialog.tsx index 0147b3f8..b09a3330 100644 --- a/src/ui/PresentationDialog.tsx +++ b/src/ui/PresentationDialog.tsx @@ -32,6 +32,8 @@ export function PresentationDialogHost({ onCreated }: { onCreated: (layoutId: st useEffect(() => { if (!opts) return; const onKey = (e: KeyboardEvent) => { + // Enter aus der Befehlszeile (die den Dialog eben geöffnet hat) bestätigt nicht. + if (e.target instanceof Element && e.target.closest("input, textarea") && !e.target.closest(".presentation-dialog")) return; if (e.key === "Escape") close(); else if (e.key === "Enter") confirm(); };