From db24525f6baf42b36f46702b5006c6d02df5cc64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakobus=20Sch=C3=BCrz?= Date: Wed, 11 Oct 2023 02:06:17 +0200 Subject: [PATCH] send in wall_thread with ctrl+enter --- view/theme/frio/js/textedit.js | 6 ++++++ 1 file changed, 6 insertions(+) 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");