From a1767ebedb073553d31e95b00209f3b7d645adee Mon Sep 17 00:00:00 2001 From: Daniel Dybing Date: Wed, 17 Dec 2025 12:58:01 +0100 Subject: [PATCH] fix(core): fixed keyboard shortcut help for Windows and Linux (#14088) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR is related to issue https://github.com/toeverything/AFFiNE/issues/13290 Keyboard shortcut for copying a private link works as expected, but the overview of shortcuts shows the Mac shortcut for Windows, web and Linux users. This fix shows the correct (Ctrl+Shift+C) shortcut to the aforementioned users. I have not tested this on a Mac (neither in browser nor in the app), but ideally this should not have an impact for Mac users as the logic for showing the correct shortcut is already implemented. Affected files: - packages/frontend/core/src/components/hooks/affine/use-shortcuts.ts Old: old_shortcut New: Keyboard shortcut fix ## Summary by CodeRabbit * **Bug Fixes** * Corrected the keyboard shortcut for copying private links on Windows from Command+Shift+C to Ctrl+Shift+C. ✏️ Tip: You can customize this high-level summary in your review settings. --- .../frontend/core/src/components/hooks/affine/use-shortcuts.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/frontend/core/src/components/hooks/affine/use-shortcuts.ts b/packages/frontend/core/src/components/hooks/affine/use-shortcuts.ts index 4e99713716..477752e24c 100644 --- a/packages/frontend/core/src/components/hooks/affine/use-shortcuts.ts +++ b/packages/frontend/core/src/components/hooks/affine/use-shortcuts.ts @@ -86,7 +86,7 @@ export const useWinGeneralKeyboardShortcuts = (): ShortcutMap => { [t('expandOrCollapseSidebar')]: ['Ctrl', '/'], [t('goBack')]: ['Ctrl', '['], [t('goForward')]: ['Ctrl', ']'], - [t('copy-private-link')]: ['⌘', '⇧', 'C'], + [t('copy-private-link')]: ['Ctrl', '⇧', 'C'], }), [t] );