mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-04 12:32:39 +00:00
@@ -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');
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user