Skip to main content

default_keymap

Function default_keymap 

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

The default command palette shortcuts:

KeysAction
Ctrl+K, Ctrl+Shift+PAction::Toggle
BackspaceAction::Back

Ctrl is Cmd on macOS. Route presses from keys::subscription through State::key_event so the toggle works anywhere; the open dialog lets the toggle chords through to the app. Back only claims Backspace on a nested page with an empty query. The command list inside keeps its own keys (arrows, Enter and Escape) through CommandPalette::command_keymap.