send on ctrl+enter

in
* comments
* prv_messages
* composer
* jot
This commit is contained in:
Jakobus Schürz 2023-10-11 02:06:17 +02:00
parent 1723aa0697
commit 67a6899ed7
6 changed files with 43 additions and 28 deletions

View file

@ -106,6 +106,11 @@ function commentExpand(id) {
closeMenu("comment-fake-form-" + id);
openMenu("item-comments-" + id);
$("#comment-edit-text-" + id)
.keydown(function (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");