Skip to content

Arrow Down/Up navigation fails to move cursor past custom blocks (e.g. Code Block) #2850

@hsingh-ds

Description

@hsingh-ds

What’s broken?

Description

When a block is inserted using the slash menu, keyboard navigation becomes stuck inside the block. Pressing Arrow Down while the cursor is within or at the end of the custom block does not move focus to the next block, preventing normal document navigation.

Actual Behavior

The cursor remains trapped within the code block or fails to move to the next block in the document.

Technical Context
BlockNote v0.51.4

What did you expect to happen?

Expected Behavior

Pressing Arrow Down on the last line of a code block should move the cursor to the next block in the document, allowing seamless keyboard navigation through the editor.

Steps to reproduce

  1. Open the document editor.
  2. Type / to open the slash menu.
  3. Select Code and insert the block.
  4. Enter some content inside the code block.
  5. Place the cursor on the last line of the block.
  6. Press Arrow Down.

Video

Video link

BlockNote version

No response

Environment

No response

Additional context

No response

Contribution

  • I'd be interested in contributing a fix for this issue

Sponsor

  • I'm a sponsor and would appreciate if you could look into this sooner than later 💖

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-triageIssue has not yet been reviewed or classified by maintainers.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions