Skip to content

Commit

Permalink
support multiple lines when edit prompt (#2565)
Browse files Browse the repository at this point in the history
  • Loading branch information
notmd committed Apr 15, 2023
1 parent d64315e commit 8cc737b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/src/components/Chat/ChatMessageEntry.tsx
Expand Up @@ -92,7 +92,7 @@ export const ChatMessageEntry = memo(function ChatMessageEntry({
if (e.key === "Escape") {
setIsEditing.off();
}
if (e.key === "Enter") {
if (e.key === "Enter" && !e.shiftKey) {
handleEditSubmit();
}
},
Expand Down

0 comments on commit 8cc737b

Please sign in to comment.