Skip to content

SegmentedButton keyboard navigation incorrectly moves focus  #161922

@ChristianEdwardPadilla

Description

@ChristianEdwardPadilla

Steps to reproduce

  1. Navigate to the first SegmentedButton doc example: https://api.flutter.dev/flutter/material/SegmentedButton-class.html.
  2. Focus one of "Multiple choice" buttons.
  3. Click to interact with the button.
  4. Observe that focus is moved to another button, instead of staying on the interacted button.

Expected results

The focus should remain on the current button when clicked.

Actual results

The focus moves when button is clicked.

Code sample

See SegmentedButton doc example: https://api.flutter.dev/flutter/material/SegmentedButton-class.html.

Screenshots or Video

Screenshots / Video demonstration
Screen.reader.for.SegmentedButton.moves.focus.backwards.webm

Logs

No response

Flutter Doctor output

Doctor output N/A

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work lista: text inputEntering text in a text field or keyboard related problemsf: focusFocus traversal, gaining or losing focusf: material designflutter/packages/flutter/material repository.found in release: 3.27Found to occur in 3.27found in release: 3.28Found to occur in 3.28frameworkflutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onr: fixedIssue is closed as already fixed in a newer versionteam-designOwned by Design Languages teamtriaged-designTriaged by Design Languages team

Type

No type

Projects

Status

Done (PR merged)

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions