Open felixbade opened 1 year ago
What happens: when you press return, the message is sent.
Expected: pressing return adds a new line to the prompt. Only pressing the Send button will send the message.
Pressin return should only send the message on desktop / physical keybord, where the shift key is also available
Workaround: pressing shift on iOS Safari works as well. But it’s not intuitive, like on desktop.
https://stackoverflow.com/questions/18880236/how-do-i-detect-hardware-keyboard-presence-with-javascript
Related: enterkeyhint="send" https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/enterkeyhint
enterkeyhint="send"
What happens: when you press return, the message is sent.
Expected: pressing return adds a new line to the prompt. Only pressing the Send button will send the message.
Pressin return should only send the message on desktop / physical keybord, where the shift key is also available