0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 20:42:43 +00:00

Merge branch 'code-folding' into codemirror-tweaks

# Conflicts:
#	shared/naturalcrit/codeEditor/codeEditor.jsx
This commit is contained in:
Charlie Humphreys
2021-11-14 14:46:26 -06:00
2 changed files with 3 additions and 10 deletions

View File

@@ -92,8 +92,6 @@ const CodeEditor = createClass({
'Cmd-M' : this.makeSpan,
'Ctrl-/' : this.makeComment,
'Cmd-/' : this.makeComment,
'Ctrl-\\' : this.toggleCodeFolded,
'Cmd-\\' : this.toggleCodeFolded,
'Ctrl-[' : this.foldAllCode,
'Cmd-[' : this.foldAllCode,
'Ctrl-]' : this.unfoldAllCode,
@@ -171,10 +169,6 @@ const CodeEditor = createClass({
}
},
toggleCodeFolded : function() {
this.codeMirror.foldCode(this.codeMirror.getCursor());
},
foldAllCode : function() {
this.codeMirror.execCommand('foldAll');
},