How can the enter key be recognized with an angle to send the message in a textArea and not write a new line?
My problem is that when I press enter in the chat I did, first a new line is written and it passes a few thousand seconds and the message is sent, but I do not want the new line to be written
function onWritten($event) {
if($event.keyCode==13){
enviarMensaje();
}
}
summary: the enter key should work only to send the message and not to write new line