From cedd40863935a366cd04e1a59bf96315822d0ff5 Mon Sep 17 00:00:00 2001 From: MohamedBassem Date: Wed, 27 Mar 2024 17:34:07 +0000 Subject: fix: Allow submitting bookmarks with Ctrl+Enter. Fixes #24 --- apps/web/components/dashboard/bookmarks/EditorCard.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/components/dashboard/bookmarks/EditorCard.tsx b/apps/web/components/dashboard/bookmarks/EditorCard.tsx index d8a3c117..202b69ed 100644 --- a/apps/web/components/dashboard/bookmarks/EditorCard.tsx +++ b/apps/web/components/dashboard/bookmarks/EditorCard.tsx @@ -76,7 +76,7 @@ export default function EditorCard({ className }: { className?: string }) { "Paste a link, write a note or drag and drop an image in here ..." } onKeyDown={(e) => { - if (e.key === "Enter" && e.metaKey) { + if (e.key === "Enter" && (e.metaKey || e.ctrlKey)) { form.handleSubmit(onSubmit, onError)(); } }} -- cgit v1.2.3-70-g09d2