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

Expose more kinds of text edit widgets to AccessKit #7823

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

DataTriny
Copy link
Contributor

Relates to #2895

Which value is allowed in a text input should be communicated to assistive technologies. In AccessKit this means setting different roles when possible, instead of the generic Role::TextInput. I chose to not introduce a new accessibility property for this:

  • it would only make sense on LineEdit widgets, and a multiline property would only be valid on TextEdit,
  • building a text edit from scratch without the built-in components doesn't seem feasible,
  • more importantly, we will need to access the built-in TextInput item from the AccessKit backend anyway to expose text runs and I now believe that doing some compiler magic is going to be very tricky if possible at all.

Fixes the Spinbox widget while at it.

@DataTriny DataTriny force-pushed the accessible-input-type branch 3 times, most recently from ec8fa7d to 5ece1b3 Compare March 8, 2025 13:13
@DataTriny DataTriny force-pushed the accessible-input-type branch from 5ece1b3 to 52abaee Compare March 9, 2025 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant