From 2d7bc2e9187cc2eac3a8e271e01d61c7ce441b5d Mon Sep 17 00:00:00 2001 From: kamtschatka Date: Tue, 9 Jul 2024 18:07:22 +0200 Subject: [PATCH] [Feature Request] Push enter key to submit #283 allowing to press enter to submit changes Applies to tags and bookmark titles --- apps/web/components/dashboard/EditableText.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/web/components/dashboard/EditableText.tsx b/apps/web/components/dashboard/EditableText.tsx index a8f61c13..55ce10c6 100644 --- a/apps/web/components/dashboard/EditableText.tsx +++ b/apps/web/components/dashboard/EditableText.tsx @@ -58,6 +58,7 @@ function EditMode({ onKeyDown={(e) => { if (e.key === "Enter") { e.preventDefault(); + onSave(); } }} />