Skip to content

Commit 3d8468b

Browse files
committed
Fix mixed indent unit
1 parent 626312c commit 3d8468b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/components/atoms/CodeEditor.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,10 @@ class CodeEditor extends React.Component<CodeEditorProps> {
5757
keyMap,
5858
mode: this.props.mode || 'gfm',
5959
readOnly: this.props.readonly === true,
60-
extraKeys: { Enter: 'newlineAndIndentContinueMarkdownList' },
60+
extraKeys: {
61+
Enter: 'newlineAndIndentContinueMarkdownList',
62+
Tab: 'indentMore',
63+
},
6164
})
6265
this.codeMirror.on('change', this.handleCodeMirrorChange)
6366
window.addEventListener('codemirror-mode-load', this.reloadMode)

0 commit comments

Comments
 (0)