mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-07 12:02:44 +00:00
initial commit, add hotkey definitions
This commit is contained in:
@@ -54,7 +54,11 @@ const CodeEditor = createClass({
|
|||||||
'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-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 -==//
|
//=-- Externally used -==//
|
||||||
setCursorPosition : function(line, char){
|
setCursorPosition : function(line, char){
|
||||||
setTimeout(()=>{
|
setTimeout(()=>{
|
||||||
|
|||||||
Reference in New Issue
Block a user