From 179505f17f1541591e2c4ffdf27c1b7337686d7c Mon Sep 17 00:00:00 2001 From: Hans Pagel Date: Thu, 24 Sep 2020 14:54:51 +0200 Subject: [PATCH] format keyboard shortcuts --- docs/src/docPages/api/keyboard-shortcuts.md | 118 ++++++++++---------- 1 file changed, 59 insertions(+), 59 deletions(-) diff --git a/docs/src/docPages/api/keyboard-shortcuts.md b/docs/src/docPages/api/keyboard-shortcuts.md index 74fe2379..4254d5a3 100644 --- a/docs/src/docPages/api/keyboard-shortcuts.md +++ b/docs/src/docPages/api/keyboard-shortcuts.md @@ -8,68 +8,68 @@ You can use `Mod-` as a shorthand for `Cmd-` on Mac and `Control-` on other plat Tiptap and all of its extensions come with predefined keyboard shortcuts. ## Essentials -| Action | Windows/Linux | macOS | -| ------------------------ | ------------- | ----- | -| Copy | ⌃C | ⌘C | -| Cut | ⌃X | ⌘X | -| Paste | ⌃V | ⌘V | -| Paste without formatting | ⌃⇧V | ⌘⇧V | -| Undo | ⌃Z | ⌘Z | -| Redo | ⌃⇧Z | ⌘⇧Z | -| Insert or edit link | ⌃K | ⌘K | -| Open link | ⌥↩ | ⌥↩ | -| Find | ⌃F | ⌘F | -| Find and replace | ⌃H | ⌘⇧H | -| Find again | ⌃G | ⌘G | -| Find previous | ⌃⇧G | ⌘⇧G | -| Repeat last action | ⌃Y | ⌘Y | -| Add a line break | ⇧↩ | ⇧↩ | +| Action | Windows/Linux | macOS | +| ------------------------ | --------------------- | --------------------- | +| Copy | `Control` `C` | `Command` `C` | +| Cut | `Control` `X` | `Command` `X` | +| Paste | `Control` `V` | `Command` `V` | +| Paste without formatting | `Control` `Shift` `V` | `Command` `Shift` `V` | +| Undo | `Control` `Z` | `Command` `Z` | +| Redo | `Control` `Shift` `Z` | `Command` `Shift` `Z` | +| Insert or edit link | `Control` `K` | `Command` `K` | +| Open link | `Option` `Enter` | `Option` `Enter` | +| Find | `Control` `F` | `Command` `F` | +| Find and replace | `Control` `H` | `Command` `Shift` `H` | +| Find again | `Control` `G` | `Command` `G` | +| Find previous | `Control` `Shift` `G` | `Command` `Shift` `G` | +| Repeat last action | `Control` `Y` | `Command` `Y` | +| Add a line break | `Shift` `Enter` | `Shift` `Enter` | ## Text Formatting -| Action | Windows/Linux | macOS | -| --------------------- | ------------- | ----- | -| Bold | ⌃B | ⌘B | -| Italicize | ⌃I | ⌘I | -| Underline | ⌃U | ⌘U | -| Strikethrough | ⌥⇧5 | ⌘⇧X | -| Superscript | ⌃. | ⌘. | -| Subscript | ⌃, | ⌘, | -| Copy text formatting | ⌃⌥C | ⌘⌥C | -| Paste text formatting | ⌃⌥V | ⌘⌥V | -| Clear text formatting | ⌃\
⌃Space | ⌘\ | -| Increase font size | ⌃⇧> | ⌘⇧> | -| Decrease font size | ⌃⇧< | ⌘⇧< | +| Action | Windows/Linux | macOS | +| --------------------- | --------------------------------------------- | ---------------------- | +| Bold | `Control` `B` | `Command` `B` | +| Italicize | `Control` `I` | `Command` `I` | +| Underline | `Control` `U` | `Command` `U` | +| Strikethrough | `Option` `Shift` `5` | `Command` `Shift` `X` | +| Superscript | `Control` `.` | `Command` `.` | +| Subscript | `Control` `,` | `Command` `,` | +| Copy text formatting | `Control` `Option` `C` | `Command` `Option` `C` | +| Paste text formatting | `Control` `Option` `V` | `Command` `Option` `V` | +| Clear text formatting | `Control` \
`Control` `Space` | `Command` `\` | +| Increase font size | `Control` `Shift` `>` | `Command` `Shift` `>` | +| Decrease font size | `Control` `Shift` `<` | `Command` `Shift` `<` | ## Paragraph Formatting -| Action | Windows/Linux | macOS | -| ------------------------------ | ------------- | ----- | -| Increase paragraph indentation | ⌃] | ⌘] | -| Decrease paragraph indentation | ⌃[ | ⌘[ | -| Apply normal text style | ⌃⌥0 | ⌘⌥0 | -| Apply heading style 1 | ⌃⌥1 | ⌘⌥1 | -| Apply heading style 2 | ⌃⌥2 | ⌘⌥2 | -| Apply heading style 3 | ⌃⌥3 | ⌘⌥3 | -| Apply heading style 4 | ⌃⌥4 | ⌘⌥4 | -| Apply heading style 5 | ⌃⌥5 | ⌘⌥5 | -| Apply heading style 6 | ⌃⌥6 | ⌘⌥6 | -| Left align | ⌃⇧L | ⌘⇧L | -| Center align | ⌃⇧E | ⌘⇧E | -| Right align | ⌃⇧R | ⌘⇧R | -| Justify | ⌃⇧J | ⌘⇧J | -| Numbered list | ⌃⇧7 | ⌘⇧7 | -| Bulleted list | ⌃⇧8 | ⌘⇧8 | -| Move paragraph up | ⌃⇧↑ | ⌃⇧↑ | -| Move paragraph down | ⌃⇧↓ | ⌃⇧↓ | +| Action | Windows/Linux | macOS | +| ------------------------------ | ---------------------- | ---------------------- | +| Increase paragraph indentation | `Control` `]` | `Command` `]` | +| Decrease paragraph indentation | `Control` `[` | `Command` `[` | +| Apply normal text style | `Control` `Option` `0` | `Command` `Option` `0` | +| Apply heading style 1 | `Control` `Option` `1` | `Command` `Option` `1` | +| Apply heading style 2 | `Control` `Option` `2` | `Command` `Option` `2` | +| Apply heading style 3 | `Control` `Option` `3` | `Command` `Option` `3` | +| Apply heading style 4 | `Control` `Option` `4` | `Command` `Option` `4` | +| Apply heading style 5 | `Control` `Option` `5` | `Command` `Option` `5` | +| Apply heading style 6 | `Control` `Option` `6` | `Command` `Option` `6` | +| Left align | `Control` `Shift` `L` | `Command` `Shift` `L` | +| Center align | `Control` `Shift` `E` | `Command` `Shift` `E` | +| Right align | `Control` `Shift` `R` | `Command` `Shift` `R` | +| Justify | `Control` `Shift` `J` | `Command` `Shift` `J` | +| Numbered list | `Control` `Shift` `7` | `Command` `Shift` `7` | +| Bulleted list | `Control` `Shift` `8` | `Command` `Shift` `8` | +| Move paragraph up | `Control` `Shift` `↑` | `Control` `Shift` `↑` | +| Move paragraph down | `Control` `Shift` `↓` | `Control` `Shift` `↓` | ## Text Selection -| Action | Windows/Linux | macOS | -| ------------------------------------------------- | ------------- | ----- | -| Select all | ⌃A | ⌘A | -| Extend selection one character to left | ⇧← | ⇧← | -| Extend selection one character to right | ⇧→ | ⇧→ | -| Extend selection one line up | ⇧↑ | ⇧↑ | -| Extend selection one line down | ⇧↓ | ⇧↓ | -| Extend selection one paragraph up | ⌥⇧↑ | ⌥⇧↑ | -| Extend selection one paragraph down | ⌥⇧↓ | ⌥⇧↓ | -| Extend selection to the beginning of the document | ⌃⇧↑ | ⌘⇧↑ | -| Extend selection to the end of the document | ⌃⇧↓ | ⌘⇧↓ | +| Action | Windows/Linux | macOS | +| ------------------------------------------------- | --------------------- | --------------------- | +| Select all | `Control` `A` | `Command` `A` | +| Extend selection one character to left | `Shift` `←` | `Shift` `←` | +| Extend selection one character to right | `Shift` `→` | `Shift` `→` | +| Extend selection one line up | `Shift` `↑` | `Shift` `↑` | +| Extend selection one line down | `Shift` `↓` | `Shift` `↓` | +| Extend selection one paragraph up | `Option` `Shift` `↑` | `Option` `Shift` `↑` | +| Extend selection one paragraph down | `Option` `Shift` `↓` | `Option` `Shift` `↓` | +| Extend selection to the beginning of the document | `Control` `Shift` `↑` | `Command` `Shift` `↑` | +| Extend selection to the end of the document | `Control` `Shift` `↓` | `Command` `Shift` `↓` |