You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: ShortcutKeys accepts a key or key array directly
Callers no longer need a helper or a single-element array: ShortcutKeys
takes `keys: string | string[]` and normalizes internally, so a one-key
hint is just `keys="?"` and a combo is `keys={["Mod", "K"]}`.
- toKeyArray is now private to ShortcutKeys (un-exported).
- TooltipWrapper / MenuItem / ShortcutTip pass their `string | string[]`
shortcut straight through — no toKeyArray call at the call site.
- SelectView passes `keys={option.key}` instead of `keys={[option.key]}`.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
0 commit comments