Implement cmd+enter/control+enter key binding for query editor, via @abourget

This commit is contained in:
Dan Sosedoff 2014-10-29 18:53:20 -05:00
parent cc8fdc7370
commit ad0bc43eeb

View File

@ -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() {