* We split code blocks only if user pressed Cmd+Enter * * @param {SyntheticKeyboardEvent} event * @param {Draft.EditorState} editorState * @return {Draft.EditorState}
(e, editorState)
| 9 | * @return {Draft.EditorState} |
| 10 | */ |
| 11 | function handleReturn(e, editorState) { |
| 12 | var contentState = editorState.getCurrentContent(); |
| 13 | var selection = editorState.getSelection(); |
| 14 | |
| 15 | return insertNewLine(editorState); |
| 16 | } |
| 17 | |
| 18 | module.exports = handleReturn; |
no test coverage detected