mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-08-06 13:38:49 +08:00
fix shortcuts for task item
This commit is contained in:
parent
a4211303df
commit
2aab7c3659
@ -50,6 +50,7 @@ const TaskItem = createNode({
|
||||
addKeyboardShortcuts() {
|
||||
const shortcuts = {
|
||||
Enter: () => this.editor.splitListItem('task_item'),
|
||||
'Shift-Tab': () => this.editor.liftListItem('task_item'),
|
||||
}
|
||||
|
||||
if (!this.options.nested) {
|
||||
@ -59,7 +60,6 @@ const TaskItem = createNode({
|
||||
return {
|
||||
...shortcuts,
|
||||
Tab: () => this.editor.sinkListItem('task_item'),
|
||||
'Shift-Tab': () => this.editor.liftListItem('task_item'),
|
||||
}
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user