escape will close SQL console, closes #72

This commit is contained in:
azivner 2018-03-07 20:33:41 -05:00
parent 90c5348ca7
commit b0bd27321a

View file

@ -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], {