Skip to main content

Module keysym

Module keysym 

Source
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 None for 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).