Skip to content

TabControl breaks keyboard navigation #19691

@m0n5ter

Description

@m0n5ter

Describe the bug

It is impossible to navigate to other tabs using Tab keyboard navigation. Once focus gets inside a TabItem there is no way out.

To Reproduce

Simplest XAML to reproduce

<TabControl>
    <TabItem Header="Tab1">
		<CheckBox>Check1</CheckBox>
    </TabItem>
    <TabItem Header="Tab2">
		<CheckBox>Unreachable</CheckBox>
    </TabItem>
</TabControl>

Second CheckBox cannot be reached with Tab navigation. Basically nothing else can be reached once focus hits any CheckBox

Expected behavior

Pressing Tab on the last control within TabItem should move focus back to TabControl

Avalonia version

11.3.6

OS

Windows

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions