0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-04 12:32:39 +00:00

Remove code fold toggling shortcut

#629
This commit is contained in:
Charlie Humphreys
2021-11-14 09:58:41 -06:00
parent b67dc1621b
commit 1ec1ddc80c

View File

@@ -74,20 +74,18 @@ const CodeEditor = createClass({
tabSize : 2, tabSize : 2,
historyEventDelay : 250, historyEventDelay : 250,
extraKeys : { extraKeys : {
'Ctrl-B' : this.makeBold, 'Ctrl-B' : this.makeBold,
'Cmd-B' : this.makeBold, 'Cmd-B' : this.makeBold,
'Ctrl-I' : this.makeItalic, 'Ctrl-I' : this.makeItalic,
'Cmd-I' : this.makeItalic, 'Cmd-I' : this.makeItalic,
'Ctrl-M' : this.makeSpan, 'Ctrl-M' : this.makeSpan,
'Cmd-M' : this.makeSpan, 'Cmd-M' : this.makeSpan,
'Ctrl-/' : this.makeComment, 'Ctrl-/' : this.makeComment,
'Cmd-/' : this.makeComment, 'Cmd-/' : this.makeComment,
'Ctrl-\\' : this.toggleCodeFolded, 'Ctrl-[' : this.foldAllCode,
'Cmd-\\' : this.toggleCodeFolded, 'Cmd-[' : this.foldAllCode,
'Ctrl-[' : this.foldAllCode, 'Ctrl-]' : this.unfoldAllCode,
'Cmd-[' : this.foldAllCode, 'Cmd-]' : this.unfoldAllCode
'Ctrl-]' : this.unfoldAllCode,
'Cmd-]' : this.unfoldAllCode
}, },
foldGutter : true, foldGutter : true,
foldOptions : { foldOptions : {
@@ -155,10 +153,6 @@ const CodeEditor = createClass({
} }
}, },
toggleCodeFolded : function() {
this.codeMirror.foldCode(this.codeMirror.getCursor());
},
foldAllCode : function() { foldAllCode : function() {
this.codeMirror.execCommand('foldAll'); this.codeMirror.execCommand('foldAll');
}, },