[66] Präsentationsplan: Enter aus der Befehlszeile bestätigt den Dialog nicht

This commit is contained in:
Claude committed 2026-11-05 13:15:32 +00:00
1 parent 6b1cc2356c
commit 4933179c89
1 file changed
+2
+2
View File
@@ -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();
};