zng_wgt_scroll::cmd

Static ZOOM_TO_FIT_CMD

source
pub static ZOOM_TO_FIT_CMD: Command
Expand description

Represents the zoom to fit action.

The content is scaled to fit the viewport, the equivalent to ImageFit::Contain.

ยงMetadata

This command has the following default metadata:

metadatavalue
name "Zoom to Fit"
shortcut shortcut!(CTRL+'0')
shortcut_filter ShortcutFilter::FOCUSED | ShortcutFilter::CMD_ENABLED

Text metadata is localized.