fix: change `metaDisplay` key to Alt for "Table of contents" (#2187)
* change `metaDisplay` key to Alt for "Table of contents" Co-authored-by: Tom Moor <tom.moor@gmail.com>
This commit is contained in:
parent
25f745e7e5
commit
a8e2e349e9
|
@ -173,7 +173,7 @@ class DocumentScene extends React.Component<Props> {
|
|||
this.onSave({ publish: true, done: true });
|
||||
}
|
||||
|
||||
@keydown(`${meta}+ctrl+h`)
|
||||
@keydown("ctrl+alt+h")
|
||||
onToggleTableOfContents(ev) {
|
||||
if (!this.props.readOnly) return;
|
||||
|
||||
|
|
|
@ -83,7 +83,7 @@ function DocumentHeader({
|
|||
const toc = (
|
||||
<Tooltip
|
||||
tooltip={ui.tocVisible ? t("Hide contents") : t("Show contents")}
|
||||
shortcut={`ctrl+${metaDisplay}+h`}
|
||||
shortcut="ctrl+alt+h"
|
||||
delay={250}
|
||||
placement="bottom"
|
||||
>
|
||||
|
|
|
@ -33,7 +33,7 @@ function KeyboardShortcuts() {
|
|||
{
|
||||
shortcut: (
|
||||
<>
|
||||
<Key>Ctrl</Key> + <Key>{metaDisplay}</Key> + <Key>h</Key>
|
||||
<Key>Ctrl</Key> + <Key>Alt</Key> + <Key>h</Key>
|
||||
</>
|
||||
),
|
||||
label: t("Table of contents"),
|
||||
|
|
Reference in New Issue