diff options
-rw-r--r-- | apps/comments/js/commentstabview.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/comments/js/commentstabview.js b/apps/comments/js/commentstabview.js index 415ec2a9be5..2d6671557fd 100644 --- a/apps/comments/js/commentstabview.js +++ b/apps/comments/js/commentstabview.js @@ -301,6 +301,11 @@ var limitExceeded = (len > this._commentMaxLength); $field.toggleClass('error', limitExceeded); $submitButton.prop('disabled', limitExceeded); + + //submits form on ctrlEnter + if (ev.keyCode === 13 && ev.ctrlKey) { + $submitButton.click(); + } }, _onClickComment: function(ev) { |