fn

detectPlatform

tested

Detect the platform for keybinding normalization (defaults to 'other' off-browser). Delegates UA sniffing to @robonen/platform, which also handles iPadOS masquerading as a Mac; isMac/isIOS return undefined off-browser.

Signature

ts
export function detectPlatform(): Platform{ ... }

Returns

Platform