diff --git a/apps/web/src/components/keyboard-shortcuts-help.tsx b/apps/web/src/components/keyboard-shortcuts-help.tsx index 936254be..e883da14 100644 --- a/apps/web/src/components/keyboard-shortcuts-help.tsx +++ b/apps/web/src/components/keyboard-shortcuts-help.tsx @@ -16,7 +16,7 @@ import { useKeyboardShortcuts } from "@/hooks/use-keyboard-shortcuts"; const KeyBadge = ({ keyName }: { keyName: string }) => { // Replace common key names with symbols or friendly names - const displayKey = keyName + return keyName .replace("Cmd", "⌘") .replace("Shift", "Shift") .replace("ArrowLeft", "Arrow Left") @@ -26,12 +26,6 @@ const KeyBadge = ({ keyName }: { keyName: string }) => { .replace("←", "◀") .replace("→", "▶") .replace("Space", "Space"); - - return ( - - {displayKey} - - ); }; const ShortcutItem = ({ shortcut }: { shortcut: any }) => { @@ -65,12 +59,9 @@ const ShortcutItem = ({ shortcut }: { shortcut: any }) => {
{key.split("+").map((keyPart: string, partIndex: number) => ( -
+ - {partIndex < key.split("+").length - 1 && ( - + - )} -
+ ))}
{index < displayKeys.length - 1 && (