deep-chat
deep-chat copied to clipboard
Can I set the line break not to be sent?
Hi,currently the message is sent as soon as the line breaks. Is it possible to disable automatic sending?
This is normal chat UX. If you want to create a new line, on most browsers all you need to do is hold SHIFT and click ENTER to create a new line.
This is normal chat UX. If you want to create a new line, on most browsers all you need to do is hold SHIFT and click ENTER to create a new line.
There is no problem with pressing SHIFT and ENTER on the computer, at least it can make the content wrap. But it doesn't work on the mobile phone. When the user inputs a long content, it needs to wrap the content to ensure more comfortable reading. The line BREAK key and ENTER key on the keyboard should be different. I think the BREAK key should not automatically send the content, but the ENTER key can. It would be great if deepchat could provide a configuration item to achieve this.
Hi @gzlboy.
Thankyou for the feedback! I agree with you on this and have made a change in deep-chat-dev and deep-chat-react-dev version 9.0.250 that would not allow the user to submit via keyboard when they are using the chat on a phone.
These packages work exactly the same as the core ones except their names are different.
I will keep this issue open until the dev changes will be merged into the core packages.
If there are any issues, please let me know! Thankyou!
Hi @gzlboy.
Thankyou for the feedback! I agree with you on this and have made a change in
deep-chat-devanddeep-chat-react-devversion9.0.250that would not allow the user to submit via keyboard when they are using the chat on a phone.These packages work exactly the same as the core ones except their names are different.
I will keep this issue open until the
devchanges will be merged into the core packages.If there are any issues, please let me know! Thankyou!
Hi,@OvidijusParsiunas Thanks for your work! Looking forward to the next version:)
This is now available in deep-chat and deep-chat-react version 2.2.0.