Skip to main content

default_keymap

Function default_keymap 

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

The default toolbar shortcuts:

KeysAction
Ctrl+F10Action::Focus
ArrowRightAction::Next
ArrowLeftAction::Previous
HomeAction::First
EndAction::Last
Enter, SpaceAction::Activate
EscapeAction::Close

Route presses from keys::subscription through State::key_event. Only Focus claims a key until the toolbar has focus, so the arrows stay free for the rest of the app; route the toolbar after anything that should see the arrows first while it is focused. The open overflow menu handles its own keys with the dropdown menu keymap.