From 63f9eca717b93a739a59d4d99c8be43163e95f6d Mon Sep 17 00:00:00 2001 From: Junya Masuda mabo Date: Tue, 4 Apr 2023 10:37:35 +0900 Subject: [PATCH] fix: Prevent chat message submission during Japanese IME conversion (#196) --- src/components/Chat/ChatContent/Message/MessageContent.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Chat/ChatContent/Message/MessageContent.tsx b/src/components/Chat/ChatContent/Message/MessageContent.tsx index 2364b2e..74b7ff9 100644 --- a/src/components/Chat/ChatContent/Message/MessageContent.tsx +++ b/src/components/Chat/ChatContent/Message/MessageContent.tsx @@ -347,7 +347,7 @@ const EditView = ({ navigator.userAgent ); - if (e.key === 'Enter' && !isMobile) { + if (e.key === 'Enter' && !isMobile && !e.nativeEvent.isComposing) { const enterToSubmit = useStore.getState().enterToSubmit; if (sticky) { if (