Skip to main content

Module input

Module input 

Source
Expand description

Key chords: modifiers held around one key, written Control+Shift+K.

Chord and Keystroke print their canonical form with Display and parse it back with FromStr. The grammar is in grammar, which the chord! macro also runs at compile time.

Re-exports§

pub use grammar::ChordError;
pub use grammar::ChordErrorKind;

Modules§

grammar
The chord grammar, shared by str::parse at run time and the chord! macro at compile time.

Structs§

Chord
Modifiers held around one key, such as Control+Shift+K.
ModifierSet
A set of held modifiers.

Enums§

KeyCode
A physical key by its position, such as KeyK or Digit1, whatever the layout.
Keystroke
The key of a chord.
Modifier
One modifier.
NamedKey
A key with a name rather than a character, such as Enter or F5.