diff --git a/desktop-app/src/renderer/components/ToolBar/Shortcuts/ShortcutsModal/ShortcutButton.tsx b/desktop-app/src/renderer/components/ToolBar/Shortcuts/ShortcutsModal/ShortcutButton.tsx index f6d2d7d7e..3162eb769 100644 --- a/desktop-app/src/renderer/components/ToolBar/Shortcuts/ShortcutsModal/ShortcutButton.tsx +++ b/desktop-app/src/renderer/components/ToolBar/Shortcuts/ShortcutsModal/ShortcutButton.tsx @@ -5,8 +5,15 @@ interface Props { const ShortcutButton = ({ text }: Props) => { const btnText = text[0].split('+'); const btnTextLength = btnText.length - 1; + const formatText = (value: string) => { - if (value === 'mod') return `⌘`; + if (value === 'mod') { + if (navigator?.userAgent?.includes('Windows')) { + return `Ctrl`; + } + return `⌘`; + } + if (value.length === 1) return value.toUpperCase(); return value; };