Skip to main content

Module keymap

Module keymap 

Source
Expand description

Data-driven key bindings: scope: chord [chord …] = action [arg] lines resolved against the scope chain the application builds.

Structs§

Chord
One key press with its modifiers, as written in a keymap file: C-x, M-x, S-Tab, Enter, q, N.
Keymap
The bindings of every scope.
Pending
The chords typed so far of a multi-chord binding.
Written
An entry of a keymap text, split but not parsed.

Enums§

Resolved
What a key press means.

Traits§

Action
What a binding line names: action [arg].

Functions§

written_entries
The well-shaped entries of text; a malformed one is left for Keymap::parse to report.