From 6cde7fed512f16cb62c71d5e34c3777ca58720fb Mon Sep 17 00:00:00 2001 From: Max Koon Date: Sun, 3 Aug 2025 22:48:09 -0400 Subject: [PATCH] fix: duplicate highlight shortcut key label (#9806) * fix: duplicate key label * Update shortcut --------- Co-authored-by: Tom Moor --- app/editor/menus/formatting.tsx | 2 +- app/scenes/KeyboardShortcuts.tsx | 3 ++- shared/editor/marks/Highlight.ts | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/editor/menus/formatting.tsx b/app/editor/menus/formatting.tsx index 6d8f4a81ec..d2946ad86e 100644 --- a/app/editor/menus/formatting.tsx +++ b/app/editor/menus/formatting.tsx @@ -86,7 +86,7 @@ export default function formattingMenuItems( }, { tooltip: dictionary.mark, - shortcut: `${metaDisplay}+Ctrl+H`, + shortcut: `${metaDisplay}+⇧+H`, icon: highlight ? ( ) : ( diff --git a/app/scenes/KeyboardShortcuts.tsx b/app/scenes/KeyboardShortcuts.tsx index e4558f6523..d2ec6bf68e 100644 --- a/app/scenes/KeyboardShortcuts.tsx +++ b/app/scenes/KeyboardShortcuts.tsx @@ -206,7 +206,8 @@ function KeyboardShortcuts() { { shortcut: ( <> - {metaDisplay} + Ctrl + h + {metaDisplay} + +{" "} + h ), label: t("Highlight"), diff --git a/shared/editor/marks/Highlight.ts b/shared/editor/marks/Highlight.ts index a31058207b..9c8e1fe9e0 100644 --- a/shared/editor/marks/Highlight.ts +++ b/shared/editor/marks/Highlight.ts @@ -72,7 +72,7 @@ export default class Highlight extends Mark { keys({ type }: { type: MarkType }) { return { - "Mod-Ctrl-h": toggleMark(type), + "Mod-Shift-h": toggleMark(type), }; }