UI module

primary

procedureextensionexperimentalsince 0.31.0Source

Whether the platform's main shortcut modifier is held.

Example↗
mods := Modifiers.{ ctrl = true, shift = true };
shortcut := primary(mods);  // Ctrl on Windows and Linux, Cmd on macOS
primary :: (mods: Modifiers) -> bool

Whether the platform's main shortcut modifier is held.

Parameters

mods: Modifiers
the modifiers to check.

Returns

bool
Example↗
mods := Modifiers.{ ctrl = true, shift = true };
shortcut := primary(mods);  // Ctrl on Windows and Linux, Cmd on macOS

See also