Skip to content

Keyboard navigation issues when using ItemsRepeater #23

@StefanKoell

Description

@StefanKoell

Describe the bug

In the provided sample, I'm using an ItemsRepeater and a nested ItemsRepeater to create multiple toggle buttons. The sample also has 2 toggle buttons created in XAML directly. Tabbing through the items allows me to tab through the XAML generated toggle buttons until I reach the first toggle button created by the ItemsRepeater. I can't tab to the other items.

Some additional observations:

To Reproduce

A simple repro case can be found here:
https://github.com/StefanKoell/Misc/tree/main/src/AvaTabKeyIssue

  1. Start the app
  2. Hit the tab keys to cycle through the items
  3. Note that I can't reach items beyond the first one in the items repeater.

Expected behavior

When tabbing through the UI, I expect that all controls (with IsTabStop set to true) show the white focus adorner to allow keyboard interaction. I would also expect to cycle through all the items and show the white focus adorner using the accelerator key when multiple identical keys are assigned.

Environment

  • OS: Windows 11
  • .NET 8
  • Avalonia-Version: 11.0.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions