fix: Prevent chat message submission during Japanese IME conversion (#196)

This commit is contained in:
Junya Masuda mabo 2023-04-04 10:37:35 +09:00 committed by GitHub
parent 6d1ae9f526
commit 63f9eca717
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -347,7 +347,7 @@ const EditView = ({
navigator.userAgent navigator.userAgent
); );
if (e.key === 'Enter' && !isMobile) { if (e.key === 'Enter' && !isMobile && !e.nativeEvent.isComposing) {
const enterToSubmit = useStore.getState().enterToSubmit; const enterToSubmit = useStore.getState().enterToSubmit;
if (sticky) { if (sticky) {
if ( if (