Skip to main content

Module keys

Module keys 

Source
Expand description

Parse key combinations such as cmd+shift+4.

Structs§

KeyCombo
Modifiers plus the final key from a combo string.

Functions§

canonical_key
Normalize aliases (esc, return, arrow_left) to one spelling.
is_known_key
A canonical name or a single character. Unknown words are not keys.
macos_function_gap
macOS has virtual keycodes for F13–F20. F21–F24 are known names and still unsupported there.
parse_key_combo
Parse cmd+shift+4, ctrl+alt+delete, or a bare key such as enter.
parse_key_sequence
Split a space-separated sequence such as ctrl+a Delete into combos.