Type Editor / @type-editor/commands / select-node-backward
select-node-backward
Variables
| Variable | Description |
|---|---|
Selects the node before the cursor when at the start of a textblock. This command provides fallback behavior for the Backspace key when structural deletion isn't possible. When the cursor is at the start of a textblock and normal backward joining fails, this command selects the node before the textblock (if it's selectable), allowing the user to delete it with a subsequent keypress. This is particularly useful for:
The command only works when:
Param The current editor state Param Optional dispatch function to execute the transaction Param Optional editor view for accurate cursor position detection Example typescript |