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:
Dave 2021-06-13 03:07:35 +04:30 committed by GitHub
parent 25f745e7e5
commit a8e2e349e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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"
>

View File

@ -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"),