From 039b99cb4534b2095b55e00385f9704dfc67ccce Mon Sep 17 00:00:00 2001 From: joey <3114306330@qq.com> Date: Mon, 20 Apr 2026 16:14:26 +0800 Subject: [PATCH] =?UTF-8?q?fix(comments):=20=E4=BF=AE=E5=A4=8D=E8=BE=93?= =?UTF-8?q?=E5=85=A5=E6=B3=95=E7=BB=84=E5=90=88=E8=BE=93=E5=85=A5=E6=97=B6?= =?UTF-8?q?=E7=9A=84=E9=94=AE=E7=9B=98=E4=BA=8B=E4=BB=B6=E5=A4=84=E7=90=86?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在评论创建组件中添加输入法组合状态检测 - 在评论编辑表单中添加输入法组合状态检测 - 在编辑器扩展中添加组合输入状态检查 - 新增 isComposingKeyboardEvent 辅助函数处理输入法事件 --- apps/web/core/components/comments/card/edit-form.tsx | 3 +++ apps/web/core/components/comments/comment-create.tsx | 3 +++ apps/web/core/helpers/keyboard.ts | 2 ++ packages/editor/src/core/extensions/enter-key.ts | 4 ++++ 4 files changed, 12 insertions(+) create mode 100644 apps/web/core/helpers/keyboard.ts diff --git a/apps/web/core/components/comments/card/edit-form.tsx b/apps/web/core/components/comments/card/edit-form.tsx index 9be8b135521..6ad23271c6a 100644 --- a/apps/web/core/components/comments/card/edit-form.tsx +++ b/apps/web/core/components/comments/card/edit-form.tsx @@ -14,6 +14,7 @@ import type { TCommentsOperations, TIssueComment } from "@plane/types"; import { cn, isCommentEmpty } from "@plane/utils"; // components import { LiteTextEditor } from "@/components/editor/lite-text"; +import { isComposingKeyboardEvent } from "@/helpers/keyboard"; type Props = { activityOperations: TCommentsOperations; @@ -77,6 +78,8 @@ export const CommentCardEditForm = observer(function CommentCardEditForm(props: