Add keyboard shortcut to execute SQL query

pull/115/head
Robert Gieseke 2017-11-17 15:07:41 +01:00
rodzic 8b4c600d98
commit bb514164e6
1 zmienionych plików z 5 dodań i 0 usunięć

Wyświetl plik

@ -90,6 +90,11 @@
mode: "text/x-sql",
lineWrapping: true,
});
editor.setOption("extraKeys", {
"Shift-Enter": function() {
document.getElementsByClassName("sql")[0].submit();
}
});
</script>
{% endblock %}