Skip to main content

default_keymap

Function default_keymap 

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

The default shortcut keys. Mod is Cmd on macOS and Ctrl elsewhere; words are deleted with Alt on macOS.

KeysShortcut
Mod+ZShortcut::Undo
Mod+Shift+Z, Mod+YShortcut::Redo
Ctrl+BackspaceShortcut::DeleteWordBackward
Ctrl+DeleteShortcut::DeleteWordForward
EscapeShortcut::EscapeUnfocus