stop propagation of ctrl+enter from SQL console, fixes #73

This commit is contained in:
azivner 2018-03-07 20:46:01 -05:00
parent b0bd27321a
commit 577a168714

View File

@ -48,7 +48,11 @@ const sqlConsole = (function() {
codeEditor.focus();
}
async function execute() {
async function execute(e) {
// stop from propagating upwards (dangerous especially with ctrl+enter executable javascript notes)
e.preventDefault();
e.stopPropagation();
const sqlQuery = codeEditor.getValue();
const result = await server.post("sql/execute", {