Add missing keyboard shortcuts to guide

This commit is contained in:
Tom Moor
2024-04-24 21:00:01 -04:00
parent 509a22a5b4
commit cffd0be0cf
2 changed files with 44 additions and 12 deletions

View File

@@ -82,7 +82,7 @@ function KeyboardShortcuts() {
{ {
shortcut: ( shortcut: (
<> <>
<Key symbol>{metaDisplay}</Key> + <Key>Enter</Key> <Key symbol>{metaDisplay}</Key> + <Key>{t("Enter")}</Key>
</> </>
), ),
label: t("Go to link"), label: t("Go to link"),
@@ -244,13 +244,13 @@ function KeyboardShortcuts() {
label: t("Ordered list"), label: t("Ordered list"),
}, },
{ {
shortcut: <Key>Tab</Key>, shortcut: <Key>{t("Tab")}</Key>,
label: t("Indent list item"), label: t("Indent list item"),
}, },
{ {
shortcut: ( shortcut: (
<> <>
<Key symbol></Key> + <Key>Tab</Key> <Key symbol></Key> + <Key>{t("Tab")}</Key>
</> </>
), ),
label: t("Outdent list item"), label: t("Outdent list item"),
@@ -274,12 +274,37 @@ function KeyboardShortcuts() {
], ],
}, },
{ {
title: "Markdown", title: t("Tables"),
items: [ items: [
{ {
shortcut: ( shortcut: (
<> <>
<Key>#</Key> <Key>Space</Key> <Key symbol>{metaDisplay}</Key> + <Key>{t("Enter")}</Key>
</>
),
label: t("Insert row"),
},
{
shortcut: <Key>{t("Tab")}</Key>,
label: t("Next cell"),
},
{
shortcut: (
<>
<Key symbol></Key> + <Key>{t("Tab")}</Key>
</>
),
label: t("Previous cell"),
},
],
},
{
title: t("Markdown"),
items: [
{
shortcut: (
<>
<Key>#</Key> <Key>{t("Space")}</Key>
</> </>
), ),
label: t("Large header"), label: t("Large header"),
@@ -287,7 +312,7 @@ function KeyboardShortcuts() {
{ {
shortcut: ( shortcut: (
<> <>
<Key>##</Key> <Key>Space</Key> <Key>##</Key> <Key>{t("Space")}</Key>
</> </>
), ),
label: t("Medium header"), label: t("Medium header"),
@@ -295,7 +320,7 @@ function KeyboardShortcuts() {
{ {
shortcut: ( shortcut: (
<> <>
<Key>###</Key> <Key>Space</Key> <Key>###</Key> <Key>{t("Space")}</Key>
</> </>
), ),
label: t("Small header"), label: t("Small header"),
@@ -303,7 +328,7 @@ function KeyboardShortcuts() {
{ {
shortcut: ( shortcut: (
<> <>
<Key>1.</Key> <Key>Space</Key> <Key>1.</Key> <Key>{t("Space")}</Key>
</> </>
), ),
label: t("Numbered list"), label: t("Numbered list"),
@@ -311,7 +336,7 @@ function KeyboardShortcuts() {
{ {
shortcut: ( shortcut: (
<> <>
<Key>-</Key> <Key>Space</Key> <Key>-</Key> <Key>{t("Space")}</Key>
</> </>
), ),
label: t("Bulleted list"), label: t("Bulleted list"),
@@ -319,7 +344,7 @@ function KeyboardShortcuts() {
{ {
shortcut: ( shortcut: (
<> <>
<Key>[ ]</Key> <Key>Space</Key> <Key>[ ]</Key> <Key>{t("Space")}</Key>
</> </>
), ),
label: t("Todo list"), label: t("Todo list"),
@@ -327,7 +352,7 @@ function KeyboardShortcuts() {
{ {
shortcut: ( shortcut: (
<> <>
<Key>&gt;</Key> <Key>Space</Key> <Key>&gt;</Key> <Key>{t("Space")}</Key>
</> </>
), ),
label: t("Blockquote"), label: t("Blockquote"),
@@ -343,7 +368,7 @@ function KeyboardShortcuts() {
{ {
shortcut: ( shortcut: (
<> <>
<Key>$$$</Key> <Key>Space</Key> <Key>$$$</Key> <Key>{t("Space")}</Key>
</> </>
), ),
label: t("LaTeX block"), label: t("LaTeX block"),

View File

@@ -689,6 +689,7 @@
"Toggle navigation": "Toggle navigation", "Toggle navigation": "Toggle navigation",
"Focus search input": "Focus search input", "Focus search input": "Focus search input",
"Open this guide": "Open this guide", "Open this guide": "Open this guide",
"Enter": "Enter",
"Publish document and exit": "Publish document and exit", "Publish document and exit": "Publish document and exit",
"Save document": "Save document", "Save document": "Save document",
"Cancel editing": "Cancel editing", "Cancel editing": "Cancel editing",
@@ -701,10 +702,16 @@
"Undo": "Undo", "Undo": "Undo",
"Redo": "Redo", "Redo": "Redo",
"Lists": "Lists", "Lists": "Lists",
"Tab": "Tab",
"Indent list item": "Indent list item", "Indent list item": "Indent list item",
"Outdent list item": "Outdent list item", "Outdent list item": "Outdent list item",
"Move list item up": "Move list item up", "Move list item up": "Move list item up",
"Move list item down": "Move list item down", "Move list item down": "Move list item down",
"Tables": "Tables",
"Insert row": "Insert row",
"Next cell": "Next cell",
"Previous cell": "Previous cell",
"Space": "Space",
"Numbered list": "Numbered list", "Numbered list": "Numbered list",
"Blockquote": "Blockquote", "Blockquote": "Blockquote",
"Horizontal divider": "Horizontal divider", "Horizontal divider": "Horizontal divider",