diff --git a/chrome_point_plus/js/point-plus.js b/chrome_point_plus/js/point-plus.js index 8a9d7b6..c9bce50 100644 --- a/chrome_point_plus/js/point-plus.js +++ b/chrome_point_plus/js/point-plus.js @@ -34,13 +34,20 @@ $(document).ready(function() { // Hotkeys // Send by CTRL+Enter if (options.option_ctrl_enter == true) { + // Reply $('.reply-form textarea').keydown(function(e) { - //e.preventDefault(); if (e.ctrlKey && (e.keyCode == 10 || e.keyCode == 13)) { e.preventDefault(); $(this).parent('.reply-form').submit(); } }); + // New post + $('#new-post-form #text-input,#new-post-form #tags-input').keydown(function(e) { + if (e.ctrlKey && (e.keyCode == 10 || e.keyCode == 13)) { + e.preventDefault(); + $(this).parent('#new-post-form').submit(); + } + }); } // Look and feel // Fluid #main layout