Check for isComposing
This commit is contained in:
parent
a378757d3b
commit
cec3784536
1 changed files with 5 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue