From 2bcc7cb7838d5acf6b3e1ce1fe3cc30ba55436c2 Mon Sep 17 00:00:00 2001 From: sheodox Date: Tue, 15 Aug 2023 18:17:41 -0500 Subject: [PATCH] Autofocus the comment editor, submit comment on ctrl/cmd+enter --- src/lib/MarkdownEditor.svelte | 3 +++ src/lib/comments/Comment.svelte | 14 +++++++++++--- src/lib/comments/CommentEditor.svelte | 3 ++- src/lib/utils.ts | 28 +++++++++++++++++++++++++++ 4 files changed, 44 insertions(+), 4 deletions(-) diff --git a/src/lib/MarkdownEditor.svelte b/src/lib/MarkdownEditor.svelte index 5fe1de6..3d42871 100644 --- a/src/lib/MarkdownEditor.svelte +++ b/src/lib/MarkdownEditor.svelte @@ -17,6 +17,7 @@ +