mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-06 08:18:39 +00:00
feat(Ctrl+Enter to send): compatibility with macos
This commit is contained in:
parent
ce2327985a
commit
2689f8a54c
1 changed files with 2 additions and 2 deletions
|
|
@ -474,8 +474,8 @@ export const ChatTextArea = forwardRef<HTMLTextAreaElement, ChatTextAreaProps>(
|
|||
}
|
||||
|
||||
if (event.key === "Enter" && !event.shiftKey && !isComposing) {
|
||||
// If Ctrl+Enter is required but Ctrl key is not pressed, don't send
|
||||
if (requireCtrlEnterToSend && !event.ctrlKey) {
|
||||
// If Ctrl+Enter is required but neither Ctrl nor Meta (Cmd) key is pressed, don't send
|
||||
if (requireCtrlEnterToSend && !event.ctrlKey && !event.metaKey) {
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue