zng::undo

Static UNDO_CMD

source
pub static UNDO_CMD: Command
Expand description

Represents the undo action.

§Param

If the command parameter is a u32, Duration or DInstant calls undo_select, otherwise calls undo.

§Scope

You can use CommandUndoExt::undo_scoped to get a command variable that is always scoped on the focused undo scope.

§Metadata

This command has the following default metadata:

metadatavalue
name "Undo"
shortcut [shortcut!(CTRL+'Z')]
icon wgt_fn!(|_| ICONS.get("undo"))

Text metadata is localized.