Skip to content

Commit

Permalink
fix: change metaDisplay key to Alt for "Table of contents" (outline…
Browse files Browse the repository at this point in the history
…#2187)

* change `metaDisplay` key to Alt for "Table of contents"

Co-authored-by: Tom Moor <[email protected]>
  • Loading branch information
xphoniex and tommoor authored Jun 12, 2021
1 parent 25f745e commit a8e2e34
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/scenes/Document/components/Document.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion app/scenes/Document/components/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"
>
Expand Down
2 changes: 1 addition & 1 deletion app/scenes/KeyboardShortcuts.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down

0 comments on commit a8e2e34

Please sign in to comment.