0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-20 09:42:41 +00:00

initial commit, add hotkey definitions

This commit is contained in:
Gazook89
2021-09-27 09:31:59 -05:00
parent 723232659f
commit ba9413eae5

View File

@@ -54,7 +54,11 @@ const CodeEditor = createClass({
'Ctrl-M' : this.makeSpan,
'Cmd-M' : this.makeSpan,
'Ctrl-/' : this.makeComment,
'Cmd-/' : this.makeComment
'Cmd-/' : this.makeComment,
'Ctrl-L' : this.makeUnOrderedList,
'Cmd-L' : this.makeUnOrderedList,
'Shift-Ctrl-L' : this.makeOrderedList,
'Shift-Cmd-L' : this.makeOrderedList
}
});
@@ -99,6 +103,10 @@ const CodeEditor = createClass({
}
},
makeUnOrderedList : function() {
const selection = this.codeMirror.getSelection()
}
//=-- Externally used -==//
setCursorPosition : function(line, char){
setTimeout(()=>{