undoCommand top-level property

CommandShortcutEvent undoCommand
final

Undo key event.

  • support
    • desktop
    • web

Implementation

final CommandShortcutEvent undoCommand = CommandShortcutEvent(
  key: 'undo',
  getDescription: () => AppFlowyEditorL10n.current.cmdUndo,
  command: 'ctrl+z',
  macOSCommand: 'cmd+z',
  handler: _undoCommandHandler,
);