diff --git a/javascripts/theme.js b/javascripts/theme.js index f919cbc..50fc8e6 100644 --- a/javascripts/theme.js +++ b/javascripts/theme.js @@ -189,6 +189,14 @@ $(function() { } return true; }); + $('textarea#issue_notes').on('keydown', function(e) { + // ctrl-enter in comment area -> focus on submit button + if ((e.ctrlKey || e.metaKey) && (e.keyCode == 13 || e.keyCode == 10)) { + $('input[name=commit]').last().focus() + return false; + } + return true; + }); function handle_jobs(jobs) { $(jobs).each(function(idx, job) {