Change order of key bindings in help text

This commit is contained in:
Jonatan Heyman 2024-01-04 16:16:21 +01:00
parent d0d8f872a6
commit a94415ab65
2 changed files with 9 additions and 9 deletions

View File

@ -97,10 +97,10 @@ I can totally see the usefulness of such a feature, and it's definitely somethin
**On Mac** **On Mac**
``` ```
⌥ + Shift + Enter Add new block at the start of the buffer
⌘ + Shift + Enter Add new block at the end of the buffer
⌥ + Enter Add new block before the current block
⌘ + Enter Add new block below the current block ⌘ + Enter Add new block below the current block
⌥ + Enter Add new block before the current block
⌘ + Shift + Enter Add new block at the end of the buffer
⌥ + Shift + Enter Add new block at the start of the buffer
⌘ + ⌥ + Enter Split the current block at cursor position ⌘ + ⌥ + Enter Split the current block at cursor position
⌘ + L Change block language ⌘ + L Change block language
⌘ + Down Goto next block ⌘ + Down Goto next block
@ -113,10 +113,10 @@ I can totally see the usefulness of such a feature, and it's definitely somethin
**On Windows and Linux** **On Windows and Linux**
``` ```
Alt + Shift + Enter Add new block at the start of the buffer
Ctrl + Shift + Enter Add new block at the end of the buffer
Alt + Enter Add new block before the current block
Ctrl + Enter Add new block below the current block Ctrl + Enter Add new block below the current block
Alt + Enter Add new block before the current block
Ctrl + Shift + Enter Add new block at the end of the buffer
Alt + Shift + Enter Add new block at the start of the buffer
Ctrl + Alt + Enter Split the current block at cursor position Ctrl + Alt + Enter Split the current block at cursor position
Ctrl + L Change block language Ctrl + L Change block language
Ctrl + Down Goto next block Ctrl + Down Goto next block

View File

@ -3,10 +3,10 @@ export const keyHelpStr = (platform: string) => {
const altChar = platform === "darwin" ? "⌥" : "Alt" const altChar = platform === "darwin" ? "⌥" : "Alt"
const keyHelp = [ const keyHelp = [
[`${altChar} + Shift + Enter`, "Add new block at the start of the buffer"],
[`${modChar} + Shift + Enter`, "Add new block at the end of the buffer"],
[`${altChar} + Enter`, "Add new block before the current block"],
[`${modChar} + Enter`, "Add new block below the current block"], [`${modChar} + Enter`, "Add new block below the current block"],
[`${altChar} + Enter`, "Add new block before the current block"],
[`${modChar} + Shift + Enter`, "Add new block at the end of the buffer"],
[`${altChar} + Shift + Enter`, "Add new block at the start of the buffer"],
[`${modChar} + ${altChar} + Enter`, "Split the current block at cursor position"], [`${modChar} + ${altChar} + Enter`, "Split the current block at cursor position"],
[`${modChar} + L`, "Change block language"], [`${modChar} + L`, "Change block language"],
[`${modChar} + Down`, "Goto next block"], [`${modChar} + Down`, "Goto next block"],