Back to API Reference
Class
PlatformKeySemantics
static
Runtime resolution of the host platform's keyboard convention — the single authority every shortcut consumer (platform key map, formatting commands, custom behaviors) reads instead of compile-time platform symbols. Detected once per session: macOS player/editor, iOS/iPadOS (hardware keyboards send Cmd), and WebGL running in a browser on an Apple OS all get Command semantics; everything else gets Control.
public static NativeModifiers PrimaryModifier{ get }The primary shortcut modifier bit for this host: Cmd on Apple platforms, Ctrl elsewhere.
