Skip to content

fix(backspace): unexpected caret jumps on backspace - #192

Merged
neSpecc merged 3 commits into
masterfrom
fix-backspace
Aug 17, 2026
Merged

fix(backspace): unexpected caret jumps on backspace#192
neSpecc merged 3 commits into
masterfrom
fix-backspace

Conversation

@neSpecc

@neSpecc neSpecc commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

This PR fixes issue when caret unexpectedly jumps to another row on backspace press at the end of the cell.

We prevent Editor.js core backspace handling.

Closes #2952

Related #174

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses a caret-jump bug in Editor.js tables by preventing Editor.js core from receiving Backspace keydown events originating inside the table, keeping cursor behavior stable when deleting content (notably trailing spaces) within a cell.

Changes:

  • Stop Backspace keydown events from bubbling out of the table element (similar to existing Tab handling).
  • Update the inline documentation to reflect the expanded keydown interception.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cursor Unexpectedly Jumps to Another Cell When Editing Table Cells

2 participants