0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 20:42:43 +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

@@ -47,14 +47,18 @@ const CodeEditor = createClass({
indentWithTabs : true,
tabSize : 2,
extraKeys : {
'Ctrl-B' : this.makeBold,
'Cmd-B' : this.makeBold,
'Ctrl-I' : this.makeItalic,
'Cmd-I' : this.makeItalic,
'Ctrl-M' : this.makeSpan,
'Cmd-M' : this.makeSpan,
'Ctrl-/' : this.makeComment,
'Cmd-/' : this.makeComment
'Ctrl-B' : this.makeBold,
'Cmd-B' : this.makeBold,
'Ctrl-I' : this.makeItalic,
'Cmd-I' : this.makeItalic,
'Ctrl-M' : this.makeSpan,
'Cmd-M' : this.makeSpan,
'Ctrl-/' : 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(()=>{