/** Whether shortcuts here read with ⌘ rather than Ctrl. */ export function isApplePlatform(): boolean { return typeof navigator !== 'undefined' && /Mac|iPhone|iPad|iPod/.test(navigator.userAgent); }