Skip to content

Navigation Block: Enter key shouldn't add line break in menu item #18208

@mcsf

Description

@mcsf

Describe the issue
This is both a bug report and an enhancement request.

  1. When the caret is inside a menu item, I had expected that pressing Enter would:
  • Add a new menu item in the same level as the item I was editing.
  • or at the very least add a subitem whose parent is the item I was editing.
  1. In any case, defaulting to breaking the line feels like experiencing an unhandled case.

To reproduce
Steps to reproduce the behavior:

  1. Start a new post.
  2. Add a Navigation block.
  3. Add the first menu item, input some text
  4. Press Enter

Observed
We remain in the same menu item, but now this item's text contains a line break.

Expected behavior
That's up to us to decide.

Metadata

Metadata

Labels

Needs DevReady for, and needs developer efforts[Block] NavigationAffects the Navigation Block[Status] In ProgressTracking issues with work in progress[Type] BugAn existing feature does not function as intended

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