Implement cmd+enter/control+enter key binding for query editor, via @abourget
This commit is contained in:
parent
cc8fdc7370
commit
ad0bc43eeb
@ -253,6 +253,17 @@ function initEditor() {
|
|||||||
editor.getSession().setMode("ace/mode/pgsql");
|
editor.getSession().setMode("ace/mode/pgsql");
|
||||||
editor.getSession().setTabSize(2);
|
editor.getSession().setTabSize(2);
|
||||||
editor.getSession().setUseSoftTabs(true);
|
editor.getSession().setUseSoftTabs(true);
|
||||||
|
|
||||||
|
editor.commands.addCommand({
|
||||||
|
name: "run_query",
|
||||||
|
bindKey: {
|
||||||
|
win: "Ctrl-Enter",
|
||||||
|
mac: "Command-Enter"
|
||||||
|
},
|
||||||
|
exec: function(editor) {
|
||||||
|
runQuery();
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user