umd/fieldstack.js
/**
 * Map a `DraftEditorCommand` command value to a corresponding function.
 */
Map a `DraftEditorCommand` command value to a corresponding function.
Map a ` DraftEditorCommand ` command value to a corresponding function .
function onKeyCommand(command, editorState) {
  switch (command) {
    case 'redo':
      return EditorState_1.redo(editorState);
    case 'delete':
      return keyCommandPlainDelete_1(editorState);
    case 'delete-word':
      return keyCommandDeleteWord_1(editorState);
    case 'backspace':
      return keyCommandPlainBackspace_1(editorState);
    case 'backspace-word':
      return keyCommandBackspaceWord_1(editorState);
    case 'backspace-to-start-of-line':
      return keyCommandBackspaceToStartOfLine_1(editorState);
    case 'split-block':
      return keyCommandInsertNewline_1(editorState);
    case 'transpose-characters':
      return keyCommandTransposeCharacters_1(editorState);
    case 'move-selection-to-start-of-block':
      return keyCommandMoveSelectionToStartOfBlock_1(editorState);
    case 'move-selection-to-end-of-block':
      return keyCommandMoveSelectionToEndOfBlock_1(editorState);
    case 'secondary-cut':
      return SecondaryClipboard_1.cut(editorState);
    case 'secondary-paste':
      return SecondaryClipboard_1.paste(editorState);
    default:
      return editorState;
  }
}
function onKeyCommand ( command , editorState ) { switch ( command ) { case 'redo' : return EditorState_1 . redo ( editorState ) ; case 'delete' : return keyCommandPlainDelete_1 ( editorState ) ; case 'delete-word' : return keyCommandDeleteWord_1 ( editorState ) ; case 'backspace' : return keyCommandPlainBackspace_1 ( editorState ) ; case 'backspace-word' : return keyCommandBackspaceWord_1 ( editorState ) ; case 'backspace-to-start-of-line' : return keyCommandBackspaceToStartOfLine_1 ( editorState ) ; case 'split-block' : return keyCommandInsertNewline_1 ( editorState ) ; case 'transpose-characters' : return keyCommandTransposeCharacters_1 ( editorState ) ; case 'move-selection-to-start-of-block' : return keyCommandMoveSelectionToStartOfBlock_1 ( editorState ) ; case 'move-selection-to-end-of-block' : return keyCommandMoveSelectionToEndOfBlock_1 ( editorState ) ; case 'secondary-cut' : return SecondaryClipboard_1 . cut ( editorState ) ; case 'secondary-paste' : return SecondaryClipboard_1 . paste ( editorState ) ; default : return editorState ; } }
Map a `DraftEditorCommand` command value to a corresponding function.
Map a ` DraftEditorCommand ` command value to a corresponding function .