The sequence binding string (same shape as in config).
Labels in press order, e.g. ["↑", "↑", "↓", "↓", "←", "→"].
formatSequenceTokens("up+up+down+down+left+right"); // ["↑","↑","↓","↓","←","→"]
export function formatSequenceTokens(binding: string): string[] {
return parseSequence(binding).map((key) => {
const symbol = SEQUENCE_SYMBOLS[key];
if (symbol) return symbol;
return key.length === 1 ? key.toUpperCase() : key.charAt(0).toUpperCase() + key.slice(1);
});
}
Formats a sequential binding into per-step display labels for the help modal — arrows become
↑ ↓ ← →, named keys are title-cased, and single characters are upper-cased.