mirror of
https://github.com/zadam/trilium.git
synced 2025-06-05 01:18:44 +02:00
stop propagation of ctrl+enter from SQL console, fixes #73
This commit is contained in:
parent
b0bd27321a
commit
577a168714
@ -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", {
|
||||
|
Loading…
x
Reference in New Issue
Block a user