mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 20:06:08 +01:00
escape will close SQL console, closes #72
This commit is contained in:
@@ -29,6 +29,9 @@ const sqlConsole = (function() {
|
|||||||
CodeMirror.keyMap.default["Shift-Tab"] = "indentLess";
|
CodeMirror.keyMap.default["Shift-Tab"] = "indentLess";
|
||||||
CodeMirror.keyMap.default["Tab"] = "indentMore";
|
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';
|
CodeMirror.modeURL = 'libraries/codemirror/mode/%N/%N.js';
|
||||||
|
|
||||||
codeEditor = CodeMirror($query[0], {
|
codeEditor = CodeMirror($query[0], {
|
||||||
|
|||||||
Reference in New Issue
Block a user