Check for isComposing

This commit is contained in:
Shusaku Uesugi 2025-03-05 12:46:07 -08:00
parent a378757d3b
commit cec3784536
No known key found for this signature in database
GPG key ID: B1B85F457002CEB4

View file

@ -246,7 +246,11 @@ function PureMultimodalInput({
rows={2}
autoFocus
onKeyDown={(event) => {
if (event.key === 'Enter' && !event.shiftKey) {
if (
event.key === "Enter" &&
!event.shiftKey &&
!event.nativeEvent.isComposing
) {
event.preventDefault();
if (isLoading) {