1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 09:46:22 +00:00

Merge pull request #1502 from Matts966/feature/new_line_completion

I fixed the behavior of the editor when the enter key is pushed.
This commit is contained in:
Junyoung Choi (Sai)
2018-02-10 22:53:29 +09:00
committed by GitHub
3 changed files with 48 additions and 2 deletions

View File

@@ -92,7 +92,7 @@ export default class CodeEditor extends React.Component {
'Cmd-T': function (cm) {
// Do nothing
},
Enter: 'newlineAndIndentContinueMarkdownList',
Enter: 'boostNewLineAndIndentContinueMarkdownList',
'Ctrl-C': (cm) => {
if (cm.getOption('keyMap').substr(0, 3) === 'vim') {
document.execCommand('copy')