format keyboard shortcuts

This commit is contained in:
Hans Pagel
2020-09-24 14:54:51 +02:00
parent 39c39862b4
commit 179505f17f

View File

@@ -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. Tiptap and all of its extensions come with predefined keyboard shortcuts.
## Essentials ## Essentials
| Action | Windows/Linux | macOS | | Action | Windows/Linux | macOS |
| ------------------------ | ------------- | ----- | | ------------------------ | --------------------- | --------------------- |
| Copy | ⌃C | ⌘C | | Copy | `Control` `C` | `Command` `C` |
| Cut | ⌃X | ⌘X | | Cut | `Control` `X` | `Command` `X` |
| Paste | ⌃V | ⌘V | | Paste | `Control` `V` | `Command` `V` |
| Paste without formatting | ⌃⇧V | ⌘⇧V | | Paste without formatting | `Control` `Shift` `V` | `Command` `Shift` `V` |
| Undo | ⌃Z | ⌘Z | | Undo | `Control` `Z` | `Command` `Z` |
| Redo | ⌃⇧Z | ⌘⇧Z | | Redo | `Control` `Shift` `Z` | `Command` `Shift` `Z` |
| Insert or edit link | ⌃K | ⌘K | | Insert or edit link | `Control` `K` | `Command` `K` |
| Open link | ⌥↩ | ⌥↩ | | Open link | `Option` `Enter` | `Option` `Enter` |
| Find | ⌃F | ⌘F | | Find | `Control` `F` | `Command` `F` |
| Find and replace | ⌃H | ⌘⇧H | | Find and replace | `Control` `H` | `Command` `Shift` `H` |
| Find again | ⌃G | ⌘G | | Find again | `Control` `G` | `Command` `G` |
| Find previous | ⌃⇧G | ⌘⇧G | | Find previous | `Control` `Shift` `G` | `Command` `Shift` `G` |
| Repeat last action | ⌃Y | ⌘Y | | Repeat last action | `Control` `Y` | `Command` `Y` |
| Add a line break | ⇧↩ | ⇧↩ | | Add a line break | `Shift` `Enter` | `Shift` `Enter` |
## Text Formatting ## Text Formatting
| Action | Windows/Linux | macOS | | Action | Windows/Linux | macOS |
| --------------------- | ------------- | ----- | | --------------------- | --------------------------------------------- | ---------------------- |
| Bold | ⌃B | ⌘B | | Bold | `Control` `B` | `Command` `B` |
| Italicize | ⌃I | ⌘I | | Italicize | `Control` `I` | `Command` `I` |
| Underline | ⌃U | ⌘U | | Underline | `Control` `U` | `Command` `U` |
| Strikethrough | ⌥⇧5 | ⌘⇧X | | Strikethrough | `Option` `Shift` `5` | `Command` `Shift` `X` |
| Superscript | ⌃. | ⌘. | | Superscript | `Control` `.` | `Command` `.` |
| Subscript | ⌃, | ⌘, | | Subscript | `Control` `,` | `Command` `,` |
| Copy text formatting | ⌃⌥C | ⌘⌥C | | Copy text formatting | `Control` `Option` `C` | `Command` `Option` `C` |
| Paste text formatting | ⌃⌥V | ⌘⌥V | | Paste text formatting | `Control` `Option` `V` | `Command` `Option` `V` |
| Clear text formatting | ⌃\<br>⌃Space | ⌘\ | | Clear text formatting | `Control` <code>\</code><br>`Control` `Space` | `Command` `\` |
| Increase font size | ⌃⇧> | ⌘⇧> | | Increase font size | `Control` `Shift` `>` | `Command` `Shift` `>` |
| Decrease font size | ⌃⇧< | ⌘⇧< | | Decrease font size | `Control` `Shift` `<` | `Command` `Shift` `<` |
## Paragraph Formatting ## Paragraph Formatting
| Action | Windows/Linux | macOS | | Action | Windows/Linux | macOS |
| ------------------------------ | ------------- | ----- | | ------------------------------ | ---------------------- | ---------------------- |
| Increase paragraph indentation | ⌃] | ⌘] | | Increase paragraph indentation | `Control` `]` | `Command` `]` |
| Decrease paragraph indentation | ⌃[ | ⌘[ | | Decrease paragraph indentation | `Control` `[` | `Command` `[` |
| Apply normal text style | ⌃⌥0 | ⌘⌥0 | | Apply normal text style | `Control` `Option` `0` | `Command` `Option` `0` |
| Apply heading style 1 | ⌃⌥1 | ⌘⌥1 | | Apply heading style 1 | `Control` `Option` `1` | `Command` `Option` `1` |
| Apply heading style 2 | ⌃⌥2 | ⌘⌥2 | | Apply heading style 2 | `Control` `Option` `2` | `Command` `Option` `2` |
| Apply heading style 3 | ⌃⌥3 | ⌘⌥3 | | Apply heading style 3 | `Control` `Option` `3` | `Command` `Option` `3` |
| Apply heading style 4 | ⌃⌥4 | ⌘⌥4 | | Apply heading style 4 | `Control` `Option` `4` | `Command` `Option` `4` |
| Apply heading style 5 | ⌃⌥5 | ⌘⌥5 | | Apply heading style 5 | `Control` `Option` `5` | `Command` `Option` `5` |
| Apply heading style 6 | ⌃⌥6 | ⌘⌥6 | | Apply heading style 6 | `Control` `Option` `6` | `Command` `Option` `6` |
| Left align | ⌃⇧L | ⌘⇧L | | Left align | `Control` `Shift` `L` | `Command` `Shift` `L` |
| Center align | ⌃⇧E | ⌘⇧E | | Center align | `Control` `Shift` `E` | `Command` `Shift` `E` |
| Right align | ⌃⇧R | ⌘⇧R | | Right align | `Control` `Shift` `R` | `Command` `Shift` `R` |
| Justify | ⌃⇧J | ⌘⇧J | | Justify | `Control` `Shift` `J` | `Command` `Shift` `J` |
| Numbered list | ⌃⇧7 | ⌘⇧7 | | Numbered list | `Control` `Shift` `7` | `Command` `Shift` `7` |
| Bulleted list | ⌃⇧8 | ⌘⇧8 | | Bulleted list | `Control` `Shift` `8` | `Command` `Shift` `8` |
| Move paragraph up | ⌃⇧↑ | ⌃⇧↑ | | Move paragraph up | `Control` `Shift` `↑` | `Control` `Shift` `↑` |
| Move paragraph down | ⌃⇧↓ | ⌃⇧↓ | | Move paragraph down | `Control` `Shift` `↓` | `Control` `Shift` `↓` |
## Text Selection ## Text Selection
| Action | Windows/Linux | macOS | | Action | Windows/Linux | macOS |
| ------------------------------------------------- | ------------- | ----- | | ------------------------------------------------- | --------------------- | --------------------- |
| Select all | ⌃A | ⌘A | | Select all | `Control` `A` | `Command` `A` |
| Extend selection one character to left | ⇧← | ⇧← | | Extend selection one character to left | `Shift` `←` | `Shift` `←` |
| Extend selection one character to right | ⇧→ | ⇧→ | | Extend selection one character to right | `Shift` `→` | `Shift` `→` |
| Extend selection one line up | ⇧↑ | ⇧↑ | | Extend selection one line up | `Shift` `↑` | `Shift` `↑` |
| Extend selection one line down | ⇧↓ | ⇧↓ | | Extend selection one line down | `Shift` `↓` | `Shift` `↓` |
| Extend selection one paragraph up | ⌥⇧↑ | ⌥⇧↑ | | Extend selection one paragraph up | `Option` `Shift` `↑` | `Option` `Shift` `↑` |
| Extend selection one paragraph down | ⌥⇧↓ | ⌥⇧↓ | | Extend selection one paragraph down | `Option` `Shift` `↓` | `Option` `Shift` `↓` |
| Extend selection to the beginning of the document | ⌃⇧↑ | ⌘⇧↑ | | Extend selection to the beginning of the document | `Control` `Shift` `↑` | `Command` `Shift` `↑` |
| Extend selection to the end of the document | ⌃⇧↓ | ⌘⇧↓ | | Extend selection to the end of the document | `Control` `Shift` `↓` | `Command` `Shift` `↓` |