UI module

Modifiers

structextensionexperimentalsince 0.31.0Source

Which modifier keys are held. primary is Cmd on macOS and Ctrl elsewhere.

Example↗
mods := Modifiers.{ ctrl = true };
assert(mods.ctrl && !mods.shift);

Fields

shift: bool
ctrl: bool
alt: bool
super: bool
Cmd on macOS, the Windows key elsewhere

See also