Type Editor / @type-editor/commands / backspace / backspace
Variable: backspace
ts
const backspace: Command;Defined in: backspace.ts:20
Default command for the backspace key.
This command chains together four operations:
- Delete the selection if one exists
- If the cursor is at the start of the first paragraph of a list item, merge that paragraph with the last paragraph of the previous list item (inserting a space at the boundary) instead of simply joining the two list items as containers
- Try to join with the block before the cursor
- Try to select the node before the cursor