Format a shortcut for display in the help menu (e.g., "ctrl+o" → "ctrl + o")
(shortcut: string)
| 11 | |
| 12 | /** Format a shortcut for display in the help menu (e.g., "ctrl+o" → "ctrl + o") */ |
| 13 | function formatShortcut(shortcut: string): string { |
| 14 | return shortcut.replace(/\+/g, ' + '); |
| 15 | } |
| 16 | type Props = { |
| 17 | dimColor?: boolean; |
| 18 | fixedWidth?: boolean; |
no outgoing calls
no test coverage detected