mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-10-02 02:41:34 +08: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();
|
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", {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user