Expand description
X11 keysym utilities for keyboard input.
Structs§
- Chord
- A parsed keyboard chord: zero or more modifier keys to hold, plus a target key to press and release.
Functions§
- char_
to_ keysym - Convert a Unicode character to its X11 keysym value.
- key_
name_ to_ keysym - Convert a human-readable key name (e.g.
"Return","F1","a") to an X11 keysym. - modifier_
name_ to_ keysym - Map a modifier name (case-insensitive) to the X11 keysym for its
left-hand variant. Returns
Nonefor non-modifiers. - parse_
chord - Parse a chord specification like
"Ctrl+Shift+A"or"Ctrl-A", or a bare key name like"Return"(no chord, empty modifier list).