umd/fieldstack.js
/**
 * See comment for `moveSelectionToStartOfBlock`.
 */
See comment for `moveSelectionToStartOfBlock`.
See comment for ` moveSelectionToStartOfBlock ` .
function keyCommandMoveSelectionToEndOfBlock(editorState) {
  var selection = editorState.getSelection();
  var endKey = selection.getEndKey();
  var content = editorState.getCurrentContent();
  var textLength = content.getBlockForKey(endKey).getLength();
  return EditorState_1.set(editorState, {
    selection: selection.merge({
      anchorKey: endKey,
      anchorOffset: textLength,
      focusKey: endKey,
      focusOffset: textLength,
      isBackward: false
    }),
    forceSelection: true
  });
}
function keyCommandMoveSelectionToEndOfBlock ( editorState ) { var selection = editorState . getSelection ( ) ; var endKey = selection . getEndKey ( ) ; var content = editorState . getCurrentContent ( ) ; var textLength = content . getBlockForKey ( endKey ) . getLength ( ) ; return EditorState_1 . set ( editorState , { selection : selection . merge ( { anchorKey : endKey , anchorOffset : textLength , focusKey : endKey , focusOffset : textLength , isBackward : false } ) , forceSelection : true } ) ; }
See comment for `moveSelectionToStartOfBlock`.
See comment for ` moveSelectionToStartOfBlock ` .