From 208af032123735eae6a7961158a62f3dd9bef2d9 Mon Sep 17 00:00:00 2001 From: Maurice Date: Fri, 13 Nov 2026 09:25:24 +0100 Subject: [PATCH] feat(dialogs): save a dialog with Ctrl/Cmd+Enter (#1303) Ctrl/Cmd+Enter in any field of a DialogShell presses its one primary footer button, focusing it first so blur-committed fields keep their value. Dialogs with no or several primaries leave the keys to the field, as does the journal story editor, which opts out with data-keeps-ctrl-enter. --- .../Journey/JourneyDetailPageEntryEditor.tsx | 2 + .../components/shared/DialogShell.test.tsx | 128 +++++++++++++++++- client/src/components/shared/DialogShell.tsx | 41 +++++- 3 files changed, 165 insertions(+), 6 deletions(-) diff --git a/client/src/components/Journey/JourneyDetailPageEntryEditor.tsx b/client/src/components/Journey/JourneyDetailPageEntryEditor.tsx index 760d8cc03..22acd11f6 100644 --- a/client/src/components/Journey/JourneyDetailPageEntryEditor.tsx +++ b/client/src/components/Journey/JourneyDetailPageEntryEditor.tsx @@ -465,8 +465,10 @@ export function EntryEditor({ entry, journeyId, tripDates, galleryPhotos, trips,
+ {/* Written like a long text: Ctrl/Cmd+Enter stays with the story instead of saving the entry. */}