Submit comment on ctrl+Enter

closes #24302
This commit is contained in:
Vincent Chan 2016-05-02 19:52:13 +02:00
parent fd844f3eb3
commit 7ac1cb68f6
1 changed files with 5 additions and 0 deletions

View File

@ -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) {