send in wall_thread with ctrl+enter

This commit is contained in:
Jakobus Schürz 2023-10-11 02:06:17 +02:00
parent 1723aa0697
commit db24525f6b

View file

@ -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");