feat: #14 allow multiline messages

This commit is contained in:
canove
2020-09-26 15:33:01 -03:00
parent 8f5aab598d
commit 2e9919c621
3 changed files with 5 additions and 1 deletions

View File

@@ -326,7 +326,7 @@ const MessageInput = () => {
disabled={recording || loading}
onPaste={handleInputPaste}
onKeyPress={e => {
if (loading) return;
if (loading || e.shiftKey) return;
else if (e.key === "Enter") {
handleSendMessage();
}