Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Writing flow: Arrow key navigation gets stuck on non-text inputs #32712

Closed
mirka opened this issue Jun 15, 2021 · 0 comments · Fixed by #32714
Closed

Writing flow: Arrow key navigation gets stuck on non-text inputs #32712

mirka opened this issue Jun 15, 2021 · 0 comments · Fixed by #32714
Assignees
Labels
[Feature] Writing Flow Block selection, navigation, splitting, merging, deletion... [Status] In Progress Tracking issues with work in progress

Comments

@mirka
Copy link
Member

mirka commented Jun 15, 2021

Description

Block navigation with arrow keys can get stuck on input element types that don't support selection ranges, such as checkbox. This effectively makes it a "focus trap", and the rest of the writing flow content cannot be accessed by keyboard.

Step-by-step reproduction instructions

  1. Add a <input type="checkbox" /> to the edit component of a Core block, such as Code.
  2. Try to navigate through the blocks with the Down arrow.

Expected behaviour

I can navigate through the checkbox element to the next tabbable element, similar to any other tabbable element like <button>.

Actual behaviour

The arrow key gets stuck on the checkbox, and the page scrolls instead of navigating to the next tabbable.

Screenshots or screen recording (optional)

Down arrow key gets stuck on checkbox

WordPress information

Latest trunk in wp-env container.

Device information

  • Device: Desktop
  • Operating system: macOS 11.3
  • Browser: Chrome 91.0.4472.77
@github-actions github-actions bot added the [Status] In Progress Tracking issues with work in progress label Jun 15, 2021
@Mamaduka Mamaduka added the [Feature] Writing Flow Block selection, navigation, splitting, merging, deletion... label Jun 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Writing Flow Block selection, navigation, splitting, merging, deletion... [Status] In Progress Tracking issues with work in progress
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants