From e470a8ec584c91ed573b5ebb651d6dc0a02ac0b6 Mon Sep 17 00:00:00 2001 From: ramnique <30795890+ramnique@users.noreply.github.com> Date: Tue, 28 Jan 2025 07:53:16 +0530 Subject: [PATCH] disable shift+enter save --- apps/rowboat/app/lib/components/editable-field.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/rowboat/app/lib/components/editable-field.tsx b/apps/rowboat/app/lib/components/editable-field.tsx index 34aba0ac..127c6a91 100644 --- a/apps/rowboat/app/lib/components/editable-field.tsx +++ b/apps/rowboat/app/lib/components/editable-field.tsx @@ -70,6 +70,7 @@ export function EditableField({ } setIsEditing(false); } + /* DISABLE shift+enter save for multiline fields if (multiline && e.key === "Enter" && e.shiftKey) { e.preventDefault(); if (isValid && localValue !== value) { @@ -77,6 +78,7 @@ export function EditableField({ } setIsEditing(false); } + */ if (e.key === "Escape") { setLocalValue(value); setIsEditing(false);