Skip to content

Bug: Cannot exit code block without use of toolbar #4936

@9larsons

Description

@9larsons

Lexical version: v0.12.0

Steps To Reproduce

  1. Create code block at end of a line
  2. Try to exit with right arrow, clicking to the right of the block, Enter, or other key entries/inputs

CleanShot 2023-08-29 at 13 13 42

The current behavior

Cannot exit a code block without use of the formatting toolbar

The expected behavior

Most editors allow a right arrow or a click outside (to the leading edge/cursor side) of the code block to 'exit' it and go back to unformatted text. In effect, you're 'stuck' in the code block.

I've submitted this as a bug as it seems like unexpected behavior, but I could see it as a feature request as well.

Metadata

Metadata

Assignees

Labels

No labels
No labels

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