Skip to content

Conversation

@SuthiYuvaraj
Copy link
Contributor

@SuthiYuvaraj SuthiYuvaraj commented Oct 17, 2025

Issue Description:

When performing keyboard navigation (using the Tab key), the user is unable to open a task item via tab navigation. The focus does not move to the task layout as expected, preventing interaction with it through the keyboard.

RootCause:

The issue occurs because the VerticalStackLayout used in the sample is not focusable by default and does not participate in the keyboard focus chain. In .NET MAUI (and Xamarin.Forms), layout containers such as StackLayout, Grid, or VerticalStackLayout are typically designed for arranging child elements and do not inherently support keyboard focus or input events.

As a result, when navigating via the keyboard, the layout itself never receives focus, so keypress events (like Enter or Space) that would normally trigger an action are ignored.

Description of Change

  • Introduced an invisible Button layer to ensure consistent accessibility and keyboard navigation across the platform.

  • Using a button directly with text would either limit the focus area if HorizontalOptions="Start" is used, and the text would be misaligned if HorizontalOptions="Fill" is used. The invisible button covers the entire task view without affecting the visual layout, maintaining proper focus and navigation behavior.

  • Added a Label to display the task title at the desired position. The label is purely visual and does not handle user interaction, allowing clicks and focus to pass through to the underlying button.

Issues Fixed

Fixes #30787

Tested the behaviour in the following platforms

  • Android
  • Windows
  • iOS
  • Mac

Output Screenshot

Before Issue Fix After Issue Fix
BeforeFixAcc.mp4
Recording.2025-10-17.180736.mp4

@SuthiYuvaraj SuthiYuvaraj marked this pull request as draft October 17, 2025 12:48
@SuthiYuvaraj SuthiYuvaraj marked this pull request as ready for review October 17, 2025 13:51
Padding="0"
AutomationProperties.IsInAccessibleTree="True"
SemanticProperties.Description="{Binding Title}"
Text="{Binding Title}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SemanticProperties.Hint="Double-tap or press Enter to open"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @jsuarezruiz , I’ve updated the changes , Kindly review and let me know if any further adjustments are needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants