From 59aba09a19a96ac26a80732f3d4bd9278bb17229 Mon Sep 17 00:00:00 2001 From: lizheming Date: Sat, 24 Aug 2024 23:36:05 +0800 Subject: [PATCH] fix: fix #2681 --- packages/client/src/components/CommentBox.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/client/src/components/CommentBox.vue b/packages/client/src/components/CommentBox.vue index 669b896c939..82f550d9b75 100644 --- a/packages/client/src/components/CommentBox.vue +++ b/packages/client/src/components/CommentBox.vue @@ -141,6 +141,10 @@ const insert = (content: string): void => { }; const onKeyDown = (event: KeyboardEvent): void => { + if (isSubmitting.value) { + return; + } + const key = event.key; // Shortcut key