import { __require as requireDraftModifier } from './DraftModifier.js';
import { __require as requireEditorState } from './EditorState.js';

/**
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 * @format
 * 
 * @emails oncall+draft_js
 */

var keyCommandInsertNewline_1;
var hasRequiredKeyCommandInsertNewline;

function requireKeyCommandInsertNewline () {
	if (hasRequiredKeyCommandInsertNewline) return keyCommandInsertNewline_1;
	hasRequiredKeyCommandInsertNewline = 1;

	var DraftModifier = requireDraftModifier();

	var EditorState = requireEditorState();

	function keyCommandInsertNewline(editorState) {
	  var contentState = DraftModifier.splitBlock(editorState.getCurrentContent(), editorState.getSelection());
	  return EditorState.push(editorState, contentState, 'split-block');
	}

	keyCommandInsertNewline_1 = keyCommandInsertNewline;
	return keyCommandInsertNewline_1;
}

export { requireKeyCommandInsertNewline as __require };
//# sourceMappingURL=keyCommandInsertNewline.js.map
