From 8d2439d8301661e3ebd46a520c1dcab9c54a5e02 Mon Sep 17 00:00:00 2001 From: aliang <1098486429@qq.com> Date: Fri, 8 Nov 2024 10:34:18 +0700 Subject: [PATCH] fix(ui): remove shortcuts for Answer Engine thread editing (#3387) --- .../app/search/components/assistant-message-section.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ee/tabby-ui/app/search/components/assistant-message-section.tsx b/ee/tabby-ui/app/search/components/assistant-message-section.tsx index d49da10157f9..a3b71adeb27c 100644 --- a/ee/tabby-ui/app/search/components/assistant-message-section.tsx +++ b/ee/tabby-ui/app/search/components/assistant-message-section.tsx @@ -13,7 +13,6 @@ import * as z from 'zod' import { MARKDOWN_CITATION_REGEX } from '@/lib/constants/regex' import { MessageAttachmentCode } from '@/lib/gql/generates/graphql' -import { useEnterSubmit } from '@/lib/hooks/use-enter-submit' import { AttachmentDocItem, RelevantCodeContext } from '@/lib/types' import { cn, @@ -532,7 +531,6 @@ function MessageContentForm({ const { content } = form.watch() const isEmptyContent = !content || isEmpty(content.trim()) const [draftMessage] = useState(message) - const { formRef, onKeyDown } = useEnterSubmit() const handleSubmit = async (values: z.infer) => { const errorMessage = await onSubmit({ @@ -546,7 +544,7 @@ function MessageContentForm({ return (
- +