kopia lustrzana https://github.com/simonw/datasette
Add keyboard shortcut to execute SQL query (#115)
rodzic
f3445e2d13
commit
eda848b37f
|
@ -90,6 +90,11 @@
|
||||||
mode: "text/x-sql",
|
mode: "text/x-sql",
|
||||||
lineWrapping: true,
|
lineWrapping: true,
|
||||||
});
|
});
|
||||||
|
editor.setOption("extraKeys", {
|
||||||
|
"Shift-Enter": function() {
|
||||||
|
document.getElementsByClassName("sql")[0].submit();
|
||||||
|
}
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
Ładowanie…
Reference in New Issue