Primitives / foldkit-primitives/events

ariaKeyshortcuts

function · packages/primitives/src/events/hotkeys.ts:189

function ariaKeyshortcuts(
  pattern: string,
  platform?: Platform,
): Option.Option<string>

The value of aria-keyshortcuts for a pattern: mod+shift+n is Meta+Shift+N on a Mac and Control+Shift+N elsewhere, in the order the pattern wrote its parts. None for a pattern matchHotkey would never match, so one definition draws the attribute and runs the shortcut.