Skip to main content

default_keymap

Function default_keymap 

Source
pub fn default_keymap() -> Keymap<Action>
Available on crate feature image-compare only.
Expand description

The default image compare shortcuts:

KeysAction
ArrowLeftAction::Left
ArrowRightAction::Right
HomeAction::Start
EndAction::End

The compare resolves them itself while its divider can be dragged and it has keyboard focus or was the last thing pressed. Pass a changed keymap with ImageCompare::keymap.