|
@@ -62,7 +62,7 @@ export default function ChatInput({
|
|
|
|
|
|
const handleKeyDown = useCallback(
|
|
const handleKeyDown = useCallback(
|
|
(e: React.KeyboardEvent) => {
|
|
(e: React.KeyboardEvent) => {
|
|
- if (e.key === 'Enter' && !e.shiftKey) {
|
|
|
|
|
|
+ if (e.key === 'Enter' && !e.shiftKey && !e.nativeEvent.isComposing) {
|
|
e.preventDefault();
|
|
e.preventDefault();
|
|
handleSubmit(e);
|
|
handleSubmit(e);
|
|
}
|
|
}
|