diff --git a/public/js/comment.js b/public/js/comment.js index ba35265..808f865 100644 --- a/public/js/comment.js +++ b/public/js/comment.js @@ -13,3 +13,11 @@ function noReply() $('#answerTo').val(0); $('#reply').hide(200); } + +$(document).ready(function (){ + $('#commentFormTextarea').keydown(function (e) { + if (e.ctrlKey && e.keyCode == 13) { + $('#commentForm').submit(); + } + }); +}) diff --git a/views/comments/form.php b/views/comments/form.php index 6c67e03..5cc05c9 100644 --- a/views/comments/form.php +++ b/views/comments/form.php @@ -5,7 +5,7 @@ -