mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-11 22:51:26 +00:00
Support keyboard composition
This commit is contained in:
parent
585d15bdee
commit
ef47e3f3c9
1 changed files with 2 additions and 1 deletions
|
|
@ -287,7 +287,8 @@ const ChatView = ({
|
|||
}
|
||||
|
||||
const handleKeyDown = (event: KeyboardEvent<HTMLTextAreaElement>) => {
|
||||
if (event.key === "Enter" && !event.shiftKey) {
|
||||
const isComposing = event.nativeEvent?.isComposing ?? false
|
||||
if (event.key === "Enter" && !event.shiftKey && !isComposing) {
|
||||
event.preventDefault()
|
||||
handleSendMessage()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue