fix(coding-agent): Title Case extension hotkeys in /hotkeys output (#969)

This commit is contained in:
Sviatoslav Abakumov 2026-01-27 00:50:51 +04:00 committed by GitHub
parent 2bbc1a7659
commit 3ae0cbe384
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4010,7 +4010,8 @@ export class InteractiveMode {
`;
for (const [key, shortcut] of shortcuts) {
const description = shortcut.description ?? shortcut.extensionPath;
hotkeys += `| \`${key}\` | ${description} |\n`;
const keyDisplay = key.replace(/\b\w/g, (c) => c.toUpperCase());
hotkeys += `| \`${keyDisplay}\` | ${description} |\n`;
}
}
}