Skip to content

TagSpaces is an offline, open source, document manager with tagging support

reactivating the some keybinding in codemirror

Ilian0a9b6f98740a
diff --git a/data/ext/editorText/extension.js b/data/ext/editorText/extension.js
index 62433537f..cdbe6cc20 100644
--- a/data/ext/editorText/extension.js
+++ b/data/ext/editorText/extension.js
@@ -53,12 +53,12 @@ define(function(require, exports, module) {
matchBrackets: true,
readOnly: isViewerMode,
//theme: "lesser-dark",
- /* extraKeys: {
- "Cmd-S": function(instance) { handleSaveButton() },
- "Ctrl-S": function(instance) { handleSaveButton() },
- "F5": function(instance) { handleSaveButton() },
+ extraKeys: {
+ "Cmd-S": function(instance) { TSCORE.FileOpener.saveFile() },
+ "Ctrl-S": function(instance) { TSCORE.FileOpener.saveFile() },
+ "Esc": function(instance) { TSCORE.FileOpener.closeFile() },
"Ctrl-Space": "autocomplete",
- } */
+ }
});
//cmEditor.readOnly = isViewerMode;