Skip to content

Navigation with arrow keys on Windows does not work between radio buttons #17479

Open
@lothrop

Description

Description

I'm trying to allow navigating between different control regions using tab and within these regions using the arrow keys, as described here:
https://learn.microsoft.com/en-us/windows/apps/design/input/focus-navigation#set-the-tab-navigation-behavior

This works well for a group of checkboxes but not for a group of radio buttons.

Steps to Reproduce

  1. Set the WinUI property TabFocusNavigation to Once and XYFocusKeyboardNavigationMode to Enabled for a layout container that contains radio buttons.
  2. Navigate to the container using the tab key.
  3. Try navigating within the container using the arrow keys.

Navigation with the arrow keys works well if the container contains checkboxes but does not work or works erratically if it contains radio buttons.

Another behavior I witnessed in the context of our larger application that did not surface in the attached test application is that pressing the arrow keys when focus is on the container freezes the application and leads to a dramatic linear memory size increase that eventually crashes our application.

Link to public reproduction project repository

https://github.com/lothrop/ArrowKeyTest

Version with bug

8.0.0-rc.1.9171

Is this a regression from previous behavior?

No, this is something new

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

Windows SDK 1.3.230724000

Did you find any workaround?

No response

Relevant log output

No response

Activity

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

Metadata

Assignees

No one assigned

    Labels

    area-controls-radiobuttonRadioButton, RadioButtonGroupp/2Work that is important, but is currently not scheduled for releasepartner/cat 😻this is an issue that impacts one of our partners or a customer our advisory team is engaged withplatform/windows 🪟s/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions