Skip to main content

Module keymap

Module keymap 

Source
Expand description

Which key runs which command: the commands’ default shortcuts plus the user’s overrides.

An override replaces all of a command’s keys (an empty list unbinds it). Lookup prefers a user binding over a default one, then declaration order; Keymap::conflicts lists every chord that more than one command claims. Chords are compared as the keyboard of the keymap’s platform produces them (off macOS, Mod and Ctrl are one key).

Structs§

Conflict
A chord claimed by more than one command.
Keymap
Default shortcuts plus user overrides, indexed for lookup by chord.
Overrides
The user’s overrides as saved in settings: command id → its keys (portable form, [] = no key).