Skip to main content

Module platform

Module platform 

Expand description

Semantic platform conventions for app-authored controls and shortcuts.

Apps describe intent (command + K, primary vs cancel); the host chooses the modifier label, event modifier, and dialog ordering for its platform.

Structs§

PlatformConventions
Host-selected conventions. Copyable so it can be propagated through a retained tree and overridden by deterministic tests or a native shell.
Shortcut
A semantic shortcut whose display and matching use platform conventions.

Enums§

DialogActionOrder
Visual order of a primary confirmation and its secondary/cancel action.
HostShortcut
A host service every app answers by shortcut, whichever chrome shows it.
Platform
Platform family relevant to human-interface conventions.

Functions§

spell_shortcut
A row of a shortcut reference, as this platform spells it: {cmd:K} is the command key with K (Ctrl+K, or the Command key on a Mac), {cmd+shift:Enter} adds Shift, {alt:Up} is Alt with Up and {F2} is a key on its own, each in the active keyboard’s legends. Everything else is shown as written.