mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 02:45:54 +01:00
stop propagation of ctrl+enter from SQL console, fixes #73
This commit is contained in:
@@ -48,7 +48,11 @@ const sqlConsole = (function() {
|
|||||||
codeEditor.focus();
|
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 sqlQuery = codeEditor.getValue();
|
||||||
|
|
||||||
const result = await server.post("sql/execute", {
|
const result = await server.post("sql/execute", {
|
||||||
|
|||||||
Reference in New Issue
Block a user