Skip to content

Bug: In an editor containing only an empty list item, pressing ctrl+backspace will not turn that list item back into a normal paragraph #8212

@amadeuspagel

Description

@amadeuspagel

Lexical version:

Steps To Reproduce

  1. Go to the Lexical Playground
  2. Delete everything
  3. Insert a bullet list item, either using the GUI or by pressing a dash and a space.
  4. Press Ctrl+Backspace.

Link to code example:

https://playground.lexical.dev/

The current behavior

Nothing happens.

The expected behavior

The list item gets turned back into a paragraph.

Impact of fix

I'm sure this irritates everyone who uses common keyboard shortcuts like ctrl+backspace.

Metadata

Metadata

Assignees

No one assigned

    Labels

    coreReconciler, DOM, Selection, Node, Events, Composition

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions