diff --git a/apps/app/components/command-palette/shortcuts-modal.tsx b/apps/app/components/command-palette/shortcuts-modal.tsx index 0cdb051f6..d5b1aa0fc 100644 --- a/apps/app/components/command-palette/shortcuts-modal.tsx +++ b/apps/app/components/command-palette/shortcuts-modal.tsx @@ -52,6 +52,7 @@ export const ShortcutsModal: React.FC = ({ isOpen, setIsOpen }) => { ? true : false ); + const { platform } = (window.navigator as any).userAgentData; useEffect(() => { if (!isOpen) setQuery(""); @@ -126,12 +127,18 @@ export const ShortcutsModal: React.FC = ({ isOpen, setIsOpen }) => { {shortcut.keys.split(",").map((key, index) => ( {key === "Ctrl" ? ( - - - + platform === "Windows" ? ( + + {key} + + ) : ( + + + + ) ) : ( - {key === "Ctrl" ? : key} + {key} )} @@ -165,12 +172,18 @@ export const ShortcutsModal: React.FC = ({ isOpen, setIsOpen }) => { {keys.split(",").map((key, index) => ( {key === "Ctrl" ? ( - - - + platform === "Windows" ? ( + + {key} + + ) : ( + + + + ) ) : ( - {key === "Ctrl" ? : key} + {key} )} diff --git a/apps/app/components/workspace/help-section.tsx b/apps/app/components/workspace/help-section.tsx index 53cc1e461..9475c3adf 100644 --- a/apps/app/components/workspace/help-section.tsx +++ b/apps/app/components/workspace/help-section.tsx @@ -57,7 +57,7 @@ export const WorkspaceHelpSection: FC = (props) => { return (