Windows Forms is a .NET UI framework for building Windows desktop applications.
MIT License
4.42k
stars
986
forks
source link
When we press "Esc" key to close the dropdown the keyboard focus is moving back to "visible" instead of dropdown.: A11y_.NET CoreWinforms_Remaining_Controls_Testing_Keyboard #12222
TAB to "Remaining_Controls_Testing" and hit ENTER key.
Remaining Controls window will get open. TAB till "Category" button and press enter.
Tab till dropdown button and select any option from the list.
Observe that When we press "Esc" key to close the dropdown the keyboard focus is moving back to "parent dropdown control" or not.
Actual Result:
When we press "Esc" key to close the dropdown the keyboard focus is moving back to "visible" instead it should remain on dropdown it self.
Expected Result:
When we press "Esc" key to close the dropdown the keyboard focus should return to it's parent control i.e. "dropdown".
User Impact:
Keyboard users will face difficulties to navigate to the parent control once the pop-up is collapsed as keyboard focus is not returning automatically to it's parent control.
.NET version
dotnet-sdk-9.0.100-rc.1.24422.10-win-x64
Did it work in .NET Framework?
Yes
Did it work in any of the earlier releases of .NET Core or .NET 5+?
No response
Issue description
GitHub Tags:
A11yMAS; #A11yTCS; #A11ySev3; #BM_.NET Core[Winforms]_Win32_May2024; #.NETCore; #WCAG2.4.7; #DesktopApp; #Win11; #FTP; #Keyboard;
Environment Details:
App name: .NET Core Winforms Window Version: Win 11 Enterprise OS Build: 22631.4169
Steps to reproduce
Actual Result:
When we press "Esc" key to close the dropdown the keyboard focus is moving back to "visible" instead it should remain on dropdown it self.
Expected Result:
When we press "Esc" key to close the dropdown the keyboard focus should return to it's parent control i.e. "dropdown".
User Impact:
Keyboard users will face difficulties to navigate to the parent control once the pop-up is collapsed as keyboard focus is not returning automatically to it's parent control.
Attachment:
https://github.com/user-attachments/assets/3fa01ba9-f719-4972-925a-4e9ec9ed1d53