fix: duplicate highlight shortcut key label (#9806)

* fix: duplicate key label

* Update shortcut

---------

Co-authored-by: Tom Moor <tom@getoutline.com>
This commit is contained in:
Max KoonandTom Moor authored and GitHub committed 2025-08-03 22:48:09 -04:00
1 parent 34059ce0ef
commit 6cde7fed51
3 files changed
+4 -3

No files matched your search

+1 -1
View File
@@ -86,7 +86,7 @@ export default function formattingMenuItems(
},
{
tooltip: dictionary.mark,
shortcut: `${metaDisplay}+Ctrl+H`,
shortcut: `${metaDisplay}+⇧+H`,
icon: highlight ? (
<CircleIcon color={highlight.mark.attrs.color || Highlight.colors[0]} />
) : (
+2 -1
View File
@@ -206,7 +206,8 @@ function KeyboardShortcuts() {
{
shortcut: (
<>
<Key symbol>{metaDisplay}</Key> + <Key>Ctrl</Key> + <Key>h</Key>
<Key symbol>{metaDisplay}</Key> + <Key symbol>⇧</Key> +{" "}
<Key>h</Key>
</>
),
label: t("Highlight"),
+1 -1
View File
@@ -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),
};
}