Whether the platform's main shortcut modifier is held.
- mods: the modifiers to check.
mods := Modifiers.{ ctrl = true, shift = true };
shortcut := primary(mods); // Ctrl on Windows and Linux, Cmd on macOSprimary :: (mods: Modifiers) -> bool
Whether the platform's main shortcut modifier is held.
Parameters
- mods: Modifiers
- the modifiers to check.
Returns
- bool
mods := Modifiers.{ ctrl = true, shift = true };
shortcut := primary(mods); // Ctrl on Windows and Linux, Cmd on macOS