From a94415ab6537f394354ce8f4eb33d746804c95b5 Mon Sep 17 00:00:00 2001 From: Jonatan Heyman Date: Thu, 4 Jan 2024 16:16:21 +0100 Subject: [PATCH] Change order of key bindings in help text --- README.md | 12 ++++++------ shared-utils/key-helper.ts | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 0539f64..b6375d5 100644 --- a/README.md +++ b/README.md @@ -97,10 +97,10 @@ I can totally see the usefulness of such a feature, and it's definitely somethin **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 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 ⌘ + L Change block language ⌘ + 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** ``` -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 +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 + L Change block language Ctrl + Down Goto next block diff --git a/shared-utils/key-helper.ts b/shared-utils/key-helper.ts index c8260ca..9930042 100644 --- a/shared-utils/key-helper.ts +++ b/shared-utils/key-helper.ts @@ -3,10 +3,10 @@ export const keyHelpStr = (platform: string) => { const altChar = platform === "darwin" ? "⌥" : "Alt" 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"], + [`${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} + L`, "Change block language"], [`${modChar} + Down`, "Goto next block"],