Automattic / Automattic/jetpack
Enable 'Enter' key to move to the next line when Map block is selected
- Dominant language
- PHP
- Stars
- 1.8k
- Forks
- 898
- Avg merge
- 1d 18h
- Merged PRs (30d)
- 774
Description
### Description:
Pressing Enter while focused on a map block should create a new paragraph block below, similar to the behavior of image and other media blocks. This ensures consistency and improves the user experience when working with map blocks.
### Steps to Reproduce:
1. Add a map block to the editor.
2. Place the cursor in the map block and press Enter.
3. Observe that pressing Enter does not move to the next line or create a new paragraph block.
### Expected:
• Pressing Enter while focused on a map block should insert a new paragraph block below the map.
### Actual:
• Pressing Enter does not create a new paragraph block or move to the next line.
### Visual:
https://github.com/user-attachments/assets/e0e8b343-5ada-4719-a0dc-35c9204f5fa4
Contributor guide
Research direction
No file, test, or entry point is named in the issue. Locate the map block editor implementation and compare its Enter-key behavior with image and other media blocks; done means pressing Enter with the map block focused creates a paragraph block below, verified through the editor reproduction steps.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react, wordpress
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100