undoCommand top-level property
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,
);