Skip to main content

default_keymap

Function default_keymap 

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

The default combobox shortcuts:

KeysAction
ArrowDownAction::Next
ArrowUpAction::Previous
EnterAction::Activate
EscapeAction::Close

The combobox handles these itself while its field has focus or its list is open, so the app does not need to subscribe to key presses. Pass a changed keymap with Combobox::keymap.