tiptap/docs/api/commands/keyboard-shortcut.md

13 lines
234 B
Markdown
Raw Normal View History

2021-04-21 17:03:33 +08:00
# keyboardShortcut
The `keyboardShortcut` command will try to trigger a ShortcutEvent with a given name.
2021-04-21 17:03:33 +08:00
## Parameters
`name: String`
The name of the shortcut to trigger.
## Usage
```js
editor.commands.keyboardShortcut('undo')
```