Answer the question
In order to leave comments, you need to log in
How to make a line break on shift + enter, while leaving the form submit on enter?
enter - form
submission shift+enter - line break.
Tried
element.on('keypress', (_event) => {
if (_event.shiftKey && (_event.keyCode===13)) {
message += '\r\n';
} else if(_event.keyCode===13) {
element.closest('form').submit();
}
}
Answer the question
In order to leave comments, you need to log in
if you have a video call - how you want to see if the skype application is not closed
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question