Skip to main content

default_keymap

Function default_keymap 

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

The default property grid shortcuts:

KeysAction
ArrowDownAction::Next
ArrowUpAction::Previous
HomeAction::First
EndAction::Last
ArrowRightAction::Expand
ArrowLeftAction::Collapse
Enter, F2Action::Edit
EscapeAction::Cancel
DeleteAction::Reset
Mod+C (Ctrl, or Cmd on macOS)Action::CopyValue
Mod+FAction::FocusSearch

While a field is being typed into it keeps the keys it uses, such as the arrows that move its cursor; Enter ends the edit and Escape cancels it. Up and Down step a number being edited. Escape in the filter box clears it, and a second Escape leaves it. The grid resolves these itself, only while it has focus, so they never clash with other components. Pass a changed keymap with PropertyGrid::keymap.