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

Adds a prop keyMap to NoteDetail and SnippetNoteDetail

This commit is contained in:
asmsuechan
2017-01-14 16:39:50 +09:00
parent df2de5c081
commit 372f2e7319
2 changed files with 2 additions and 0 deletions

View File

@@ -154,6 +154,7 @@ class NoteDetail extends React.Component {
fontSize={editorFontSize}
indentType={config.editor.indentType}
indentSize={editorIndentSize}
keyMap={config.editor.keyMap}
readOnly
ref={'code-' + index}
/>

View File

@@ -508,6 +508,7 @@ class SnippetNoteDetail extends React.Component {
fontSize={editorFontSize}
indentType={config.editor.indentType}
indentSize={editorIndentSize}
keyMap={config.editor.keyMap}
onChange={(e) => this.handleCodeChange(index)(e)}
ref={'code-' + index}
/>