diff --git a/app/scenes/KeyboardShortcuts.tsx b/app/scenes/KeyboardShortcuts.tsx index 7fc60e42a..2e36b5233 100644 --- a/app/scenes/KeyboardShortcuts.tsx +++ b/app/scenes/KeyboardShortcuts.tsx @@ -4,7 +4,7 @@ import styled from "styled-components"; import Flex from "~/components/Flex"; import InputSearch from "~/components/InputSearch"; import Key from "~/components/Key"; -import { metaDisplay } from "~/utils/keyboard"; +import { metaDisplay, altDisplay } from "~/utils/keyboard"; function KeyboardShortcuts() { const { t } = useTranslation(); @@ -44,7 +44,7 @@ function KeyboardShortcuts() { { shortcut: ( <> - Ctrl + Alt + h + Ctrl + {altDisplay} + h ), label: t("Table of contents"), @@ -246,7 +246,7 @@ function KeyboardShortcuts() { { shortcut: ( <> - Alt + + {altDisplay} + ), label: t("Move list item up"), @@ -254,7 +254,7 @@ function KeyboardShortcuts() { { shortcut: ( <> - Alt + + {altDisplay} + ), label: t("Move list item down"), diff --git a/app/utils/keyboard.ts b/app/utils/keyboard.ts index ee34f79a7..627ea1ba5 100644 --- a/app/utils/keyboard.ts +++ b/app/utils/keyboard.ts @@ -1,5 +1,7 @@ import { isMac } from "~/utils/browser"; +export const altDisplay = isMac() ? "⌥" : "Alt"; + export const metaDisplay = isMac() ? "⌘" : "Ctrl"; export const meta = isMac() ? "cmd" : "ctrl";