(config: string, t?: (key: KeyLabel) => string)
| 216 | } |
| 217 | |
| 218 | export function formatKeybindParts(config: string, t?: (key: KeyLabel) => string): string[] { |
| 219 | if (!config || config === "none") return [] |
| 220 | const keybind = parseKeybind(config)[0] |
| 221 | return keybind ? displayKeybindParts(keybind, t) : [] |
| 222 | } |
| 223 | |
| 224 | export function formatKeybind(config: string, t?: (key: KeyLabel) => string): string { |
| 225 | const parts = formatKeybindParts(config, t) |
no test coverage detected