send in wall_thread with ctrl+enter
This commit is contained in:
parent
1723aa0697
commit
db24525f6b
1 changed files with 6 additions and 0 deletions
|
@ -106,6 +106,12 @@ function commentExpand(id) {
|
||||||
closeMenu("comment-fake-form-" + id);
|
closeMenu("comment-fake-form-" + id);
|
||||||
openMenu("item-comments-" + id);
|
openMenu("item-comments-" + id);
|
||||||
$("#comment-edit-text-" + 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()
|
.putCursorAtEnd()
|
||||||
.addClass("comment-edit-text-full")
|
.addClass("comment-edit-text-full")
|
||||||
.removeClass("comment-edit-text-empty");
|
.removeClass("comment-edit-text-empty");
|
||||||
|
|
Loading…
Reference in a new issue