mirror of
https://github.com/friendica/friendica
synced 2025-04-26 11:10:11 +00:00
send on ctrl+enter
in * comments * prv_messages * composer * jot
This commit is contained in:
parent
1723aa0697
commit
67a6899ed7
6 changed files with 43 additions and 28 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue