pub fn default_keymap() -> Keymap<Action>Available on crate feature
command only.Expand description
The default command shortcuts:
| Keys | Action |
|---|---|
ArrowDown | Action::Next |
ArrowUp | Action::Previous |
Home | Action::First |
End | Action::Last |
Enter | Action::Activate |
Escape | Action::Close |
The list handles these itself while its search field has focus, so
Home and End move the highlight rather than the text cursor. Pass a
changed keymap with Command::keymap. To use them without focus,
resolve presses from keys::subscription and send
Action::event to the state.