Replaced '+' with 'Plus' in shortcut display (#193)

This commit is contained in:
Jonas List 2025-06-06 20:20:57 +02:00 committed by GitHub
parent d2678d8211
commit cd38ae7a51
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 3 deletions

View file

@ -50,7 +50,11 @@ const KeyboardShortcut: React.FC<KeyboardShortcutProps> = ({
{keys.map((key, index) => (
<React.Fragment key={index}>
<kbd className="px-1 py-0.5 text-xs font-semibold text-fd-foreground bg-fd-card border border-fd-border rounded-sm">
{key.toLowerCase() === "shift" ? "⇧" : key}
{key.toLowerCase() === "shift"
? "⇧"
: key.toLowerCase() === "plus"
? "+"
: key}
</kbd>
{index < keys.length - 1 && <span className="mx-1">+</span>}
</React.Fragment>