Submit comment with ctrl+enter or cmd+enter
This commit is contained in:
parent
82a8a7155a
commit
42a2df9d25
|
@ -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();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue