Which modifier keys are held. primary is Cmd on macOS and Ctrl elsewhere.
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
Which modifier keys are held. primary is Cmd on macOS and Ctrl elsewhere.
mods := Modifiers.{ ctrl = true };
assert(mods.ctrl && !mods.shift);