mirror of
https://github.com/voideditor/void
synced 2026-05-23 09:28:23 +00:00
Revert "Fix: IME composition preventing message sending in chat"
This commit is contained in:
parent
3fa95be625
commit
9031215001
1 changed files with 2 additions and 2 deletions
|
|
@ -1129,7 +1129,7 @@ const UserMessageComponent = ({ chatMessage, messageIdx, isCheckpointGhost, curr
|
|||
if (e.key === 'Escape') {
|
||||
onCloseEdit()
|
||||
}
|
||||
if (e.key === 'Enter' && !e.shiftKey && !(e.nativeEvent as any).isComposing) {
|
||||
if (e.key === 'Enter' && !e.shiftKey) {
|
||||
onSubmit()
|
||||
}
|
||||
}
|
||||
|
|
@ -3056,7 +3056,7 @@ export const SidebarChat = () => {
|
|||
setInstructionsAreEmpty(!newStr)
|
||||
}, [setInstructionsAreEmpty])
|
||||
const onKeyDown = useCallback((e: KeyboardEvent<HTMLTextAreaElement>) => {
|
||||
if (e.key === 'Enter' && !e.shiftKey && !(e.nativeEvent as any).isComposing) {
|
||||
if (e.key === 'Enter' && !e.shiftKey) {
|
||||
onSubmit()
|
||||
} else if (e.key === 'Escape' && isRunning) {
|
||||
onAbort()
|
||||
|
|
|
|||
Loading…
Reference in a new issue