-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Open
Labels
[Feature] Writing FlowBlock selection, navigation, splitting, merging, deletion...Block selection, navigation, splitting, merging, deletion...[Focus] Accessibility (a11y)Changes that impact accessibility and need corresponding review (e.g. markup changes).Changes that impact accessibility and need corresponding review (e.g. markup changes).[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended[Type] RegressionRelated to a regression in the latest releaseRelated to a regression in the latest release
Description
Description
When using the Up and Down arrow keys on input fields within a block, WritingFlow may prevent the default action thus breaking the native, expected, interaction with inputs.
A while ago, this used to happen also for Left and Right arrow. That was fixed. It appears there's the need for a fix also for Up and Down arrow keys. Breaking the expected interaction for native inputs should never, ever, happen.
Step-by-step reproduction instructions
- Go to the post editor.
- Insert a Table block.
- The Table block shows its placeholder with two inputs of
type="number"for the number of columns and rows. - Tab to the
Column countinput. - Use the Up arrow key to increase the number of columns.
- Observe the number doesn't increase.
- Observe focus moves to the block placeholder container instead.
- Go to Preferences > Blocks, and enable 'Contain text cursor inside block'. To my knowledge, this disables WritingFlow.
- Repeat the steps above.
- Observe that now the Up arrow key does increase the number of columns.
Please consider this potentially happens with any input where the Up and Down arrow keys have a native behavior, also for blocks provided by plugins or themes.
Screenshots, screen recording, code snippet
No response
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
Metadata
Metadata
Assignees
Labels
[Feature] Writing FlowBlock selection, navigation, splitting, merging, deletion...Block selection, navigation, splitting, merging, deletion...[Focus] Accessibility (a11y)Changes that impact accessibility and need corresponding review (e.g. markup changes).Changes that impact accessibility and need corresponding review (e.g. markup changes).[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended[Type] RegressionRelated to a regression in the latest releaseRelated to a regression in the latest release