Submit comment with ctrl+enter or cmd+enter

This commit is contained in:
Carl Chenet 2017-05-17 10:47:08 +02:00
parent 82a8a7155a
commit 42a2df9d25

View file

@ -512,4 +512,11 @@ $(document).ready(function() {
$("#story_guidelines").toggle();
return false;
});
$('textarea#comment').keydown(function (e) {
if ((e.metaKey || e.ctrlKey) && e.keyCode == 13) {
$("button.comment-post").click();
}
});
});