mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-06-23 20:21:10 +08:00
format all the keyboard shortcuts
This commit is contained in:
parent
063e268479
commit
b718061de9
@ -23,8 +23,8 @@ yarn add @tiptap/extension-blockquote
|
||||
| blockquote | — | Wrap content in a blockquote. |
|
||||
|
||||
## Keyboard shortcuts
|
||||
* Windows & Linux: `Control ` `Shift ` `9`
|
||||
* macOS: `Command ` `Shift ` `9`
|
||||
* Windows/Linux: `Control` `Shift` `9`
|
||||
* macOS: `Cmd` `Shift` `9`
|
||||
|
||||
## Source code
|
||||
[packages/extension-blockquote/](https://github.com/ueberdosis/tiptap-next/blob/main/packages/extension-blockquote/)
|
||||
|
@ -27,8 +27,8 @@ yarn add @tiptap/extension-bold
|
||||
| bold | — | Mark text bold. |
|
||||
|
||||
## Keyboard shortcuts
|
||||
* Windows & Linux: `Control ` `B`
|
||||
* macOS: `Command ` `B`
|
||||
* Windows/Linux: `Control` `B`
|
||||
* macOS: `Cmd` `B`
|
||||
|
||||
## Source code
|
||||
[packages/extension-bold/](https://github.com/ueberdosis/tiptap-next/blob/main/packages/extension-bold/)
|
||||
|
@ -27,7 +27,7 @@ yarn add @tiptap/extension-bullet-list @tiptap/extension-list-item
|
||||
| bullet_list | — | Toggle a bullet list. |
|
||||
|
||||
## Keyboard shortcuts
|
||||
* `Control ` `Shift ` `8`
|
||||
* `Control` `Shift` `8`
|
||||
|
||||
## Source code
|
||||
[packages/extension-bullet-list/](https://github.com/ueberdosis/tiptap-next/blob/main/packages/extension-bullet-list/)
|
||||
|
@ -27,7 +27,7 @@ yarn add @tiptap/extension-code-block
|
||||
| codeBlock | — | Wrap content in a code block. |
|
||||
|
||||
## Keyboard shortcuts
|
||||
* `Shift ` `Control ` `\`
|
||||
* `Shift` `Control` `\`
|
||||
|
||||
## Source code
|
||||
[packages/extension-code-block/](https://github.com/ueberdosis/tiptap-next/blob/main/packages/extension-code-block/)
|
||||
|
@ -23,7 +23,7 @@ yarn add @tiptap/extension-code
|
||||
| code | — | Mark text as inline code. |
|
||||
|
||||
## Keyboard shortcuts
|
||||
* `Alt ` `
|
||||
* `Alt ` <code>`</code>
|
||||
|
||||
## Source code
|
||||
[packages/extension-code/](https://github.com/ueberdosis/tiptap-next/blob/main/packages/extension-code/)
|
||||
|
@ -19,9 +19,9 @@ yarn add @tiptap/extension-hard-break
|
||||
| hardBreak | — | Add a line break. |
|
||||
|
||||
## Keyboard shortcuts
|
||||
* `Shift ` `Enter`
|
||||
* Windows & Linux: `Control ` `Enter`
|
||||
* macOS: `Command ` `Enter`
|
||||
* `Shift` `Enter`
|
||||
* Windows/Linux: `Control` `Enter`
|
||||
* macOS: `Cmd` `Enter`
|
||||
|
||||
## Source code
|
||||
[packages/extension-hard-break/](https://github.com/ueberdosis/tiptap-next/blob/main/packages/extension-hard-break/)
|
||||
|
@ -24,12 +24,8 @@ yarn add @tiptap/extension-heading
|
||||
| heading | level | Creates a heading node. |
|
||||
|
||||
## Keyboard shortcuts
|
||||
* `Control ` `Shift ` `1` → H1
|
||||
* `Control ` `Shift ` `2` → H2
|
||||
* `Control ` `Shift ` `3` → H3
|
||||
* `Control ` `Shift ` `4` → H4
|
||||
* `Control ` `Shift ` `5` → H5
|
||||
* `Control ` `Shift ` `6` → H6
|
||||
* Windows/Linux: `Control` `Alt` `1-6`
|
||||
* macOS: `Cmd` `Alt` `1-6`
|
||||
|
||||
## Source code
|
||||
[packages/extension-heading/](https://github.com/ueberdosis/tiptap-next/blob/main/packages/extension-heading/)
|
||||
|
@ -23,12 +23,12 @@ yarn add @tiptap/extension-history
|
||||
|
||||
## Keyboard shortcuts
|
||||
### Undo
|
||||
* Windows & Linux: `Control ` `Z`
|
||||
* macOS: `Command ` `Z`
|
||||
* Windows/Linux: `Control` `Z`
|
||||
* macOS: `Cmd` `Z`
|
||||
|
||||
### Redo
|
||||
* Windows & Linux: `Shift ` `Control ` `Z`
|
||||
* macOS: `Shift ` `Command ` `Z`
|
||||
* Windows/Linux: `Shift` `Control` `Z`
|
||||
* macOS: `Shift` `Cmd` `Z`
|
||||
|
||||
## Source code
|
||||
[packages/extension-history/](https://github.com/ueberdosis/tiptap-next/blob/main/packages/extension-history/)
|
||||
|
@ -27,8 +27,8 @@ yarn add @tiptap/extension-italic
|
||||
| italic | — | Mark text italic. |
|
||||
|
||||
## Keyboard shortcuts
|
||||
* Windows & Linux: `Control ` `I`
|
||||
* macOS: `Command ` `I`
|
||||
* Windows/Linux: `Control` `I`
|
||||
* macOS: `Cmd` `I`
|
||||
|
||||
## Source code
|
||||
[packages/extension-italic/](https://github.com/ueberdosis/tiptap-next/blob/main/packages/extension-italic/)
|
||||
|
@ -22,8 +22,8 @@ yarn add @tiptap/extension-link
|
||||
| link | — | Link the selected text. |
|
||||
|
||||
## Keyboard shortcuts
|
||||
* Windows & Linux: `Control ` `K`
|
||||
* macOS: `Command ` `K`
|
||||
* Windows/Linux: `Control` `K`
|
||||
* macOS: `Cmd` `K`
|
||||
|
||||
## Source code
|
||||
[packages/extension-link/](https://github.com/ueberdosis/tiptap-next/blob/main/packages/extension-link/)
|
||||
|
@ -25,7 +25,7 @@ yarn add @tiptap/extension-list-item
|
||||
## Keyboard shortcuts
|
||||
* New list item: `Enter`
|
||||
* Sink a list item: `Tab`
|
||||
* Lift a list item: `Shift ` `Tab`
|
||||
* Lift a list item: `Shift` `Tab`
|
||||
|
||||
## Source code
|
||||
[packages/extension-list-item/](https://github.com/ueberdosis/tiptap-next/blob/main/packages/extension-list-item/)
|
||||
|
@ -27,7 +27,7 @@ yarn add @tiptap/extension-ordered-list @tiptap/extension-list-item
|
||||
| ordered_list | — | Toggle a ordered list. |
|
||||
|
||||
## Keyboard shortcuts
|
||||
* `Control ` `Shift ` `9`
|
||||
* `Control` `Shift` `9`
|
||||
|
||||
## Source code
|
||||
[packages/extension-ordered-list/](https://github.com/ueberdosis/tiptap-next/blob/main/packages/extension-ordered-list/)
|
||||
|
@ -27,8 +27,8 @@ yarn add @tiptap/extension-strike
|
||||
| strike | — | Mark text as strikethrough. |
|
||||
|
||||
## Keyboard shortcuts
|
||||
* Windows & Linux: `Control ` `D`
|
||||
* macOS: `Command ` `D`
|
||||
* Windows/Linux: `Control` `D`
|
||||
* macOS: `Cmd` `D`
|
||||
|
||||
## Source code
|
||||
[packages/extension-strike/](https://github.com/ueberdosis/tiptap-next/blob/main/packages/extension-strike/)
|
||||
|
@ -27,8 +27,8 @@ yarn add @tiptap/extension-underline
|
||||
| underline | — | Mark text as underlined. |
|
||||
|
||||
## Keyboard shortcuts
|
||||
* Windows & Linux: `Control ` `U`
|
||||
* macOS: `Command ` `U`
|
||||
* Windows/Linux: `Control` `U`
|
||||
* macOS: `Cmd` `U`
|
||||
|
||||
## Source code
|
||||
[packages/extension-underline/](https://github.com/ueberdosis/tiptap-next/blob/main/packages/extension-underline/)
|
||||
|
@ -1,5 +1,5 @@
|
||||
# Keyboard Shortcuts
|
||||
Keyboard shortcuts may be strings like `Shift-Control-Enter`. Keys are based on the strings that can appear in `event.key`. There is a little tool called [keycode.info](https://keycode.info/), which shows the `event.key` interactively. Multiple keys should be concatenated with a `-`.
|
||||
Keyboard shortcuts may be strings like `'Shift-Control-Enter'`. Keys are based on the strings that can appear in `event.key`, concatenated with a `-`. There is a little tool called [keycode.info](https://keycode.info/), which shows the `event.key` interactively.
|
||||
|
||||
Use lowercase letters to refer to letter keys (or uppercase letters if you want shift to be held). You may use `Space` as an alias for the <code> </code>.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user