diff options
| author | MohamedBassem <me@mbassem.com> | 2024-03-27 17:34:07 +0000 |
|---|---|---|
| committer | MohamedBassem <me@mbassem.com> | 2024-03-27 17:34:40 +0000 |
| commit | cedd40863935a366cd04e1a59bf96315822d0ff5 (patch) | |
| tree | 3a163507bd5bd54a840cad58ae35e439b5d3e284 | |
| parent | 6e90035fa811180a59465b5e79987bafef302d59 (diff) | |
| download | karakeep-cedd40863935a366cd04e1a59bf96315822d0ff5.tar.zst | |
fix: Allow submitting bookmarks with Ctrl+Enter. Fixes #24
| -rw-r--r-- | apps/web/components/dashboard/bookmarks/EditorCard.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
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)(); } }} |
