diff --git a/view/theme/frio/js/textedit.js b/view/theme/frio/js/textedit.js index 3a384bbb23..19795874b9 100644 --- a/view/theme/frio/js/textedit.js +++ b/view/theme/frio/js/textedit.js @@ -106,6 +106,12 @@ function commentExpand(id) { closeMenu("comment-fake-form-" + id); openMenu("item-comments-" + id); $("#comment-edit-text-" + id) + .keydown(function (e) { + console.log("BLA" + e); + if ((e.ctrlKey || e.metaKey) && (e.keyCode == 13 || e.keyCode == 10)) { + $("#comment-edit-submit-" + id).trigger('click'); + } + }) .putCursorAtEnd() .addClass("comment-edit-text-full") .removeClass("comment-edit-text-empty");