Type Editor / @type-editor/dom-change-util / parse-change/looks-like-backspace
parse-change/looks-like-backspace
Functions
| Function | Description |
|---|---|
Determines if a change looks like a backspace operation (joining or deleting blocks). This function performs a sophisticated analysis to detect if a change resulted from a backspace operation. Backspace can either delete an entire block or join two blocks together. The detection helps determine if the change should be delegated to the Backspace key handler instead of being processed as a regular DOM change. Detection Logic:
The function uses internal helpers to navigate block boundaries and verify that the structure matches a backspace operation pattern. |