I have a jQuery code that detects when the ENTER key is pressed, but the event is also called when I use Shift + ENTER , for example.
How do I detect only ENTER ? The intent is to send the form only when the ENTER key is pressed, leaving Shift + Enter for line break.
$(document).on('keyup', '.comment-textarea', function(event) {
if (event.which == 13) {
console.log('ENTER');
}
});