@mocanvas/mocanvas · function

kbdToKeys

declare function kbdToKeys(kbd: string, isApple?: boolean): string[]

Split a shortcut into the keys to draw.

Only the first comma-separated alternative is shown: a tool bound to "d,p,b" has one shortcut as far as the user is concerned, and printing three would suggest a chord.

mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.