dotnet / winforms

Windows Forms is a .NET UI framework for building Windows desktop applications.
MIT License
4.44k stars 988 forks source link

[Accessibility] NVDA tool does not show focus blue rectangle in property edit #12565

Open MelonWang1 opened 5 days ago

MelonWang1 commented 5 days ago

.NET version

.NET 10.0.100-alpha.1.24573.1

Did it work in .NET Framework?

Yes

Did it work in any of the earlier releases of .NET Core or .NET 5+?

Yes, also can repro in .NET8.0/9.0, cannot repro in .NET 6.0/7.0.

Issue description

Current Behavior

NVDA does not show focus blue rectangle. Image

https://github.com/user-attachments/assets/a147db27-d749-4819-840f-d11e26e5aa45

Expected Behavior

NVDA should show focus blue rectangle. In .NET7.0/6.0: Image

https://github.com/user-attachments/assets/f56a1fbe-6a29-4320-b404-cc39df126aa1

In .NET Framework:

Image

Steps to reproduce

  1. Create a .NET Core Winforms project.
  2. Add a Button and PropertyGrid controls in form designer.
  3. Set the SelectedObject property to Button1 in propertyGrid1 control.
  4. Build and run project.
  5. Open NVDA tool and select FlatStyle property in propertyGrid control.
  6. Press Tab (should focus on edit part)
LeafShi1 commented 14 hours ago

@MelonWang1 Could you please test if the issue is related to the version of NAVD and confirm if the issue occurs in Narrator or JAWS?

MelonWang1 commented 13 hours ago

@LeafShi1 This issue cannot repro in Narrator tool, can repro in latest NVDA tool version 2024.4.1. Narrator: Image

NVDA: Image

LeafShi1 commented 5 hours ago

This issue caused by the changes in PR #9321