Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UIA focus is not returned back to menu item after closing dropdown #8432

Closed
dmitrii-drobotov opened this issue Dec 28, 2022 · 2 comments · Fixed by #8473
Closed

UIA focus is not returned back to menu item after closing dropdown #8432

dmitrii-drobotov opened this issue Dec 28, 2022 · 2 comments · Fixed by #8473
Assignees
Labels
tenet-accessibility MAS violation, UIA issue; problems with accessibility standards
Milestone

Comments

@dmitrii-drobotov
Copy link
Contributor

.NET version

.NET 8.0.0-alpha.1.22622.1

Did it work in .NET Framework?

No

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

No

Issue description

Related to #7770.

After closing MenuStrip's submenu, UIA focus doesn't switch back to the top-level menu item, which may cause issues for screen readers.

Current behavior

In Narrator:
A gif demonstrating the issue when using Narrator: after closing the dropdown via Escape, focus highlight rectangle stays on now invisible menu item

[Press Alt]
menuStrip1, Project, menu item, collapsed,
[Press Down arrow]
Project, menu,
New, menu item, Ctrl+ N,
[Press Escape]

There is no announcement that focus is now on Project menu item after pressing Escape.

In JAWS:
A gif demonstrating the issue when using JAWS: after closing the dropdown via Escape, menu is reopened and announced again as context menu

[Press Alt]
Menu bar
Project sub menu
[Press Down arrow]
menu
New Ctrl+N
[Press Escape]
Context Menu
Project
menu
New Ctrl+N
[Press Escape]
Context Menu
Project
menu
New Ctrl+N

After closing the dropdown, submenu is reopened and announced again as a context menu.

NVDA is similar to Narrator but focus moves to the whole window instead of staying on closed dropdown item.

Expected behavior

After dropdown is dismissed, top-level menu item is announced as currently focused item, and the focus highlight moves to it.

Steps to reproduce

  1. Add a MenuStrip with a menu item with submenu (e.g. via Insert Standard Items button), or open Menus form on WinformsControlsTest app.
  2. Start Narrator
  3. Expand and close the menu item
@dmitrii-drobotov dmitrii-drobotov added tenet-accessibility MAS violation, UIA issue; problems with accessibility standards untriaged The team needs to look at this issue in the next triage labels Dec 28, 2022
@ghost ghost added the 🚧 work in progress Work that is current in progress label Jan 9, 2023
@dreddy-work dreddy-work removed the untriaged The team needs to look at this issue in the next triage label Jan 18, 2023
@ghost ghost removed the 🚧 work in progress Work that is current in progress label Feb 14, 2023
@Tanya-Solyanik Tanya-Solyanik added this to the 8.0 Preview2 milestone Feb 14, 2023
@Nora-Zhou01
Copy link
Member

Verified this on .NET latest build: 8.0.100-preview.2.23116.17,issue was fixed , Tested in Narrator, NVDA, JAWS, after the drop-down menu is cancelled, the top-level menu item is declared as the current focus item and the focus moves to it. please check below gif:
Narrator:
menu
NVDA:
NVDA

@Cassie-Li01
Copy link

Verified on TP version .NET 8.0.100-preview.2.23151.8, issue is fixed. Gif is same as above.

@ghost ghost locked as resolved and limited conversation to collaborators Apr 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
tenet-accessibility MAS violation, UIA issue; problems with accessibility standards
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants