Skip to content

[Accessibility] The values of IsKeyboardFocusable and HasKeyboardFocus fields are incorrect for DomainUpDown/NumericUpdown control in Inspect UIA structure #4123

@John-Qiao

Description

@John-Qiao
  • .NET Core Version:
    .NET SDK 6.0.100-alpha.1.20514.15

  • Have you experienced this same bug with .NET Framework?:
    No

More Info:

  1. This issue does not occur in .NET Core 3.1 and .NET Framework.
  2. This issue occurs in NumericUpDown control too.

Problem description:

The IsKeyboardFocusable field is false and the HasKeyboardFocus field is true in UIA structure.
Actual

Expected behavior:

The IsKeyboardFocusable field is true and the HasKeyboardFocus field is false in UIA structure. Like it works in .NET Core 3.1 or .NET Framework.
Expected

Minimal repro:

  1. Open the attached TestApp.zip project in VS, run it and launch the Inspect tool.
  2. Click on the DomainUpDown edit control and move the mouse pointer to focus on the whole DomainUpDown control.
  3. Observe the IsKeyboardFocusable and HasKeyboardFocus fields' value in Inspect UIA structure.
    ReproSteps

Metadata

Metadata

Labels

tenet-accessibilityMAS violation, UIA issue; problems with accessibility standards

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions