Include Ctrl+Enter as one the shortcuts that insert line break instead of submitting the message

This commit is contained in:
adambar 2015-07-03 13:49:01 +02:00
parent 86f7b7adf5
commit c20c59add0

View file

@ -210,7 +210,7 @@
updateMessageFieldSize: function (event) {
var keyCode = event.which || event.keyCode;
if (keyCode === 13 && !event.altKey && !event.shiftKey) {
if (keyCode === 13 && !event.altKey && !event.shiftKey && !event.ctrlKey) {
// enter pressed - submit the form now
event.preventDefault();
return this.$('.bottom-bar form').submit();