Maui
Maui copied to clipboard
[BUG] Popup V2 - Accessibility/Keyboard setup
Is there an existing issue for this?
- [x] I have searched the existing issues
Did you read the "Reporting a bug" section on Contributing file?
- [x] I have read the "Reporting a bug" section on Contributing file: https://github.com/CommunityToolkit/Maui/blob/main/CONTRIBUTING.md#reporting-a-bug
Current Behavior
- Escape key is not working. I think it should close popup only when
CanBeDismissedByTappingOutsideOfPopupis set to true (or maybe we can use new property) - Tab/Shift+Tab keys are working everywhere when Popup is opened
- On Windows, Narrator is working in whole Window when Popup is opened (Voice Over works well on Mac, it stays in popup)
Expected Behavior
- Escape key should close popup when
CanBeDismissedByTappingOutsideOfPopupis set to true, or when similar property is set to true - Tab/Shift+Tab keys should be only available in content of Popup when Popup is opened. Additionally it should focus on first focusable element
- Narrator should be available inside popup only (propably it should also have access to Window handle like VO in MacOS)
Steps To Reproduce
- Open and run official samples solution
- Go to popup
- Observe unexpected behavior
For Mac, it might be needed to enable keyboard support in system
Link to public reproduction project repository
https://github.com/CommunityToolkit/Maui/tree/9f16c1cbe2aaf997d84826e21cec982c102f21e9/samples/CommunityToolkit.Maui.Sample/Views/Popups
Environment
- .NET MAUI CommunityToolkit: 12.1.0
- OS: Windows 11, Mac OS 14.7.1
- .NET MAUI: 9.0.90
Anything else?
Hi,
I've some issues with accessibility/keyboard navigation connected with new popup v2. Problem occurs on Windows and MacCatalyst and it can be reproducced on desktop using official samples.
This behaviour is actually a regression, when you compare with previous Popup version which was more native.
Any chances for some fixes?