-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
WIP: Iced accessibility #1849
base: master
Are you sure you want to change the base?
WIP: Iced accessibility #1849
Conversation
@wash2 thanks for your work on this! Do you think the pop-os iced fork is ready for some experimental real-world a11y testing? I've tried to compile the iced counter example with the winit and a11y features, but the accessibility layer does not seem to be present, Orca is unable to focus the window. Ubuntu Mate 24.04. I'm a blind programmer, I would be glad to provide relevant feedback when you're ready, as this will help not just iced, but Cosmic too. |
Hi @RastislavKish , you will probably have more luck testing on the COSMIC alpha than on Ubuntu 24.04, because it includes experimental support for accessibility APIs on wayland via https://github.com/pop-os/at-spi2-core and cosmic-comp. I've done some testing, and it seems to be working ok to me, but I'd be happy to hear if there are some key features missing in your opinion. |
Or without at-spi2-core patches, it may be best to test on X11. (Or on Windows or macOS.) Maybe Mate is still on X11, at least by default, though. I'm not familiar with it's current state. |
I just tested on Windows pop-os fork master branch (iced-accessibility cannot fetch winit from git). Had to add raw-window-handle as a dependency of iced_winit (it's currently only present on Linux but it is a hard requirement on all platforms for AccessKit). I tried a few examples and none of them work. I can clearly see that an AccessKit tree is generated but keyboard focus does not work at all. Neither does mouse exploration. Is there a specific program that is known to work outside of the Cosmic suite? |
By keyboard focus, do you mean tabbing through the application to focus different widgets, or the Focus action? Tab and Shift + Tab won't work for a lot of the iced examples. I've primarily done the testing with the cosmic suite. Widget handling of accessibility events is implemented for things like the default action on buttons, but the Focus action is actually not handled in the winit shell as of right now, though it should be, and seems to have been an oversight on my part. The reader does read off widget names, but it is somewhat limited for sure. |
Yes, that's what I meant.
I can't see anywhere calls to the following methods, so I guess text input is not yet implemented: Also, please don't set the live property unconditionally on all labels, this will make for a very annoying experience. This property should only be used for live regions such as a message list in a chat application. |
This is a work in progress implementation of iced-rs/rfcs#21.
I have added widget implementations where I could, but they need more work. Some widget implementations may need changes to be more compatible with accessibility.