(config: string, t?: (key: KeyLabel) => string)
| 222 | } |
| 223 | |
| 224 | export function formatKeybind(config: string, t?: (key: KeyLabel) => string): string { |
| 225 | const parts = formatKeybindParts(config, t) |
| 226 | if (parts.length === 0) return "" |
| 227 | return IS_MAC ? parts.join("") : parts.join("+") |
| 228 | } |
| 229 | |
| 230 | // KeybindV2 takes an array instead of a string |
| 231 | export function formatKeybindKeys(config: string, t?: (key: KeyLabel) => string): string[] { |
no test coverage detected