From d11c061d0bd4f67264c69e9286059b6a09cc02f6 Mon Sep 17 00:00:00 2001 From: AkiraFukushima Date: Sat, 13 Jan 2024 12:55:42 +0900 Subject: [PATCH] refs #4653 Fix mac hot keys --- renderer/components/layouts/account.tsx | 2 +- renderer/components/layouts/timelines.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/renderer/components/layouts/account.tsx b/renderer/components/layouts/account.tsx index 94bdb003..3ab5b45c 100644 --- a/renderer/components/layouts/account.tsx +++ b/renderer/components/layouts/account.tsx @@ -28,7 +28,7 @@ export default function Layout({ children }: LayoutProps) { const streamings = useRef>([]) for (let i = 1; i < 9; i++) { - useHotkeys(`ctrl+${i}`, () => { + useHotkeys(`mod+${i}`, () => { const acct = accounts[i - 1] if (acct && acct.id) { router.push(`/accounts/${acct.id}`) diff --git a/renderer/components/layouts/timelines.tsx b/renderer/components/layouts/timelines.tsx index c5bb8e98..fb7fcf12 100644 --- a/renderer/components/layouts/timelines.tsx +++ b/renderer/components/layouts/timelines.tsx @@ -20,7 +20,7 @@ export default function Layout({ children }: LayoutProps) { const [lists, setLists] = useState>([]) const [openJump, setOpenJump] = useState(false) - useHotkeys('ctrl+k', () => setOpenJump(current => !current)) + useHotkeys('mod+k', () => setOpenJump(current => !current)) useEffect(() => { if (router.query.id) {