1
1
mirror of https://github.com/Fabio286/antares.git synced 2025-06-05 21:59:22 +02:00

perf: improved keypress detector

This commit is contained in:
2022-08-12 12:40:35 +02:00
parent 75c5a34095
commit 0f219cf9b7
4 changed files with 46 additions and 11 deletions

View File

@ -118,7 +118,7 @@ const parseKeys = (keys: {[key: number]: string}[]) => {
`<code class="text-bold">${sk}</code>`
)))
.join('+')
.replaceAll('CommandOrControl', isMacOS ? 'CMD' : 'CTRL')
.replaceAll('CommandOrControl', isMacOS ? '`Command' : 'Control')
).join(', ');
};