mirror of
https://github.com/outline/outline.git
synced 2026-12-03 18:10:36 +03:00
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:
1 parent
34059ce0ef
commit
6cde7fed51
3 files changed
+4
-3
No files matched your search
@@ -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]} />
|
||||
) : (
|
||||
|
||||
@@ -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"),
|
||||
|
||||
@@ -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),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user