mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-08 07:32:40 +00:00
@@ -82,8 +82,6 @@ const CodeEditor = createClass({
|
|||||||
'Cmd-M' : this.makeSpan,
|
'Cmd-M' : this.makeSpan,
|
||||||
'Ctrl-/' : this.makeComment,
|
'Ctrl-/' : this.makeComment,
|
||||||
'Cmd-/' : this.makeComment,
|
'Cmd-/' : this.makeComment,
|
||||||
'Ctrl-\\' : this.toggleCodeFolded,
|
|
||||||
'Cmd-\\' : this.toggleCodeFolded,
|
|
||||||
'Ctrl-[' : this.foldAllCode,
|
'Ctrl-[' : this.foldAllCode,
|
||||||
'Cmd-[' : this.foldAllCode,
|
'Cmd-[' : this.foldAllCode,
|
||||||
'Ctrl-]' : this.unfoldAllCode,
|
'Ctrl-]' : this.unfoldAllCode,
|
||||||
@@ -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');
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user