From b052c92421b132218698e71b0d4d9259d5cfdd62 Mon Sep 17 00:00:00 2001 From: hi Date: Wed, 17 Dec 2025 18:15:25 +0800 Subject: [PATCH] fix: fix typo in link shortcut key binding (#14117) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Summary by CodeRabbit * **Bug Fixes** * Corrected keyboard shortcut mapping for link function, ensuring it properly recognizes Ctrl+K command. ✏️ 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 22ec3be02..4e9971371 100644 --- a/packages/frontend/core/src/components/hooks/affine/use-shortcuts.ts +++ b/packages/frontend/core/src/components/hooks/affine/use-shortcuts.ts @@ -237,7 +237,7 @@ export const useWinPageKeyboardShortcuts = (): ShortcutMap => { [t('strikethrough')]: ['Ctrl', 'Shift', 'S'], [t('inlineCode')]: [' Ctrl', 'E'], [t('codeBlock')]: ['Ctrl', 'Alt', 'C'], - [t('link')]: ['Ctr', 'K'], + [t('link')]: ['Ctrl', 'K'], [t('quickSearch')]: ['Ctrl', 'K'], [t('bodyText')]: ['Ctrl', 'Shift', '0'], [tH('1')]: ['Ctrl', 'Shift', '1'],