From fffadf6051b2ee3051960f15aa5279f981c6e6bd Mon Sep 17 00:00:00 2001 From: linqirong <609413692@qq.com> Date: Sat, 1 Apr 2023 22:06:38 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E5=A4=8D=E4=B8=AD=E6=96=87?= =?UTF-8?q?=E8=BE=93=E5=85=A5=E6=B3=95=E7=8A=B6=E6=80=81enter=E4=B8=8Bsubm?= =?UTF-8?q?it=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/components/home.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/home.tsx b/app/components/home.tsx index de93510db..5d244edd9 100644 --- a/app/components/home.tsx +++ b/app/components/home.tsx @@ -134,7 +134,7 @@ function useSubmitHandler() { const shouldSubmit = (e: KeyboardEvent) => { if (e.key !== "Enter") return false; - + if (e.key === 'Enter' && !e.isComposing) return false return ( (config.submitKey === SubmitKey.AltEnter && e.altKey) || (config.submitKey === SubmitKey.CtrlEnter && e.ctrlKey) ||