common: improve key formatting

Signed-off-by: 01zulfi <85733202+01zulfi@users.noreply.github.com>
This commit is contained in:
01zulfi
2025-07-22 10:58:26 +05:00
committed by Abdullah Atta
parent e4d42c8bac
commit 773ede4b6c
3 changed files with 24 additions and 19 deletions

View File

@@ -56,8 +56,9 @@ function getGroupedTableKeybindingsMarkdown() {
const rows = Object.entries(mergedShortcuts)
.map(([description, { web, desktop }]) => {
const webKeys = web?.map(formatKey).join(" / ") || "-";
const windowsLinuxKeys = desktop?.map(formatKey).join(" / ") || "-";
const webKeys = web?.map((k) => formatKey(k)).join(" / ") || "-";
const windowsLinuxKeys =
desktop?.map((k) => formatKey(k)).join(" / ") || "-";
const macKeys =
desktop
?.map(macify)