diff --git a/js/functions.js b/js/functions.js index fd8b36bf28..570f578ba1 100644 --- a/js/functions.js +++ b/js/functions.js @@ -1195,7 +1195,12 @@ $(document).ready(function(){ } }); - $('#sqlquery').focus(); + $('#sqlquery').focus().keydown(function (e) { + if (e.ctrlKey && e.keyCode == 13) { + $("#sqlqueryform").submit(); + } + }); + if ($('#input_username')) { if ($('#input_username').val() == '') { $('#input_username').focus();