fix shortcuts for task item
This commit is contained in:
@@ -50,6 +50,7 @@ const TaskItem = createNode({
|
|||||||
addKeyboardShortcuts() {
|
addKeyboardShortcuts() {
|
||||||
const shortcuts = {
|
const shortcuts = {
|
||||||
Enter: () => this.editor.splitListItem('task_item'),
|
Enter: () => this.editor.splitListItem('task_item'),
|
||||||
|
'Shift-Tab': () => this.editor.liftListItem('task_item'),
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!this.options.nested) {
|
if (!this.options.nested) {
|
||||||
@@ -59,7 +60,6 @@ const TaskItem = createNode({
|
|||||||
return {
|
return {
|
||||||
...shortcuts,
|
...shortcuts,
|
||||||
Tab: () => this.editor.sinkListItem('task_item'),
|
Tab: () => this.editor.sinkListItem('task_item'),
|
||||||
'Shift-Tab': () => this.editor.liftListItem('task_item'),
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user