mirror of
https://github.com/zadam/trilium.git
synced 2025-02-25 15:35:43 +08:00
escape will close SQL console, closes #72
This commit is contained in:
parent
90c5348ca7
commit
b0bd27321a
1 changed files with 3 additions and 0 deletions
|
@ -29,6 +29,9 @@ const sqlConsole = (function() {
|
|||
CodeMirror.keyMap.default["Shift-Tab"] = "indentLess";
|
||||
CodeMirror.keyMap.default["Tab"] = "indentMore";
|
||||
|
||||
// removing Escape binding so that Escape will propagate to the dialog (which will close on escape)
|
||||
delete CodeMirror.keyMap.basic["Esc"];
|
||||
|
||||
CodeMirror.modeURL = 'libraries/codemirror/mode/%N/%N.js';
|
||||
|
||||
codeEditor = CodeMirror($query[0], {
|
||||
|
|
Loading…
Reference in a new issue