diff --git a/static/js/app.js b/static/js/app.js index 0b546b4..13321d5 100644 --- a/static/js/app.js +++ b/static/js/app.js @@ -253,6 +253,17 @@ function initEditor() { editor.getSession().setMode("ace/mode/pgsql"); editor.getSession().setTabSize(2); editor.getSession().setUseSoftTabs(true); + + editor.commands.addCommand({ + name: "run_query", + bindKey: { + win: "Ctrl-Enter", + mac: "Command-Enter" + }, + exec: function(editor) { + runQuery(); + } + }); } $(document).ready(function() {