( chord: Chord, platform: DisplayPlatform = 'linux', )
| 179 | * Convert a Chord to a platform-appropriate display string. |
| 180 | */ |
| 181 | export function chordToDisplayString( |
| 182 | chord: Chord, |
| 183 | platform: DisplayPlatform = 'linux', |
| 184 | ): string { |
| 185 | return chord.map(ks => keystrokeToDisplayString(ks, platform)).join(' ') |
| 186 | } |
| 187 | |
| 188 | /** |
| 189 | * Parse keybinding blocks (from JSON config) into a flat list of ParsedBindings. |
nothing calls this directly
no test coverage detected