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:
@@ -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(()=>{
|
||||
|
||||
Reference in New Issue
Block a user