I use quill with react, and I added a binding for key 13 (enter) to send the message (shift enter for new line).
Works perfectly on PC, but in mobile I don't want it to happen. In mobile I want the regular behavior (new line), so if the user wants to send the message - he can just click 'submit'.
I thought about parsing the user-agent string, or somehow detecting a virtual-keyboard, but I'm looking for something more reliable.
Is there a correct way to do that?