mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-23 17:07:49 +08:00
13 lines
234 B
Markdown
13 lines
234 B
Markdown
# keyboardShortcut
|
|
The `keyboardShortcut` command will try to trigger a ShortcutEvent with a given name.
|
|
|
|
## Parameters
|
|
`name: String`
|
|
|
|
The name of the shortcut to trigger.
|
|
|
|
## Usage
|
|
```js
|
|
editor.commands.keyboardShortcut('undo')
|
|
```
|