You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
VoiceOver occasionally doesn't announce typed characters/numbers in input fields #71885
Flutter currently relying on voice over to pronounce focused soft keyboard key repeat user typing, and that seems to be buggy.
The native ios App relies on some internal mechanism to pronounce the change in textfield. It does not seem to be public documented, I will keep digging.
I have the same question.
I tried to add any properties of Textfield() and TextFormField().
But VoiceOver cannot announce characters.
When I tapped a edit box on iOS apps, VoiceOver usually focused the edit box.
But it focus keyboard made by Flutter apps.
I'm thinking at the curse.
But I don't know how to solve it.
We had an accessibility review of our prototype app written with flutter (Engine ref 4797b06) and this bug came up. Except that voiceover never announced a single character typed. For user which rely on that feedback the keyboard is unusable in that state.
Edit i can't reproduce the problem in another app from us which was build with flutter 1.17(Not sure about that). engine revision for reference: ee76268252c22f5c11e82a7b87423ca3982e51a7
I prototyped it, it doesn't work. The soft keyboard only listens to UIView that implements UITextInput. The last suggestion makes UIAccessibilityElement to implement UITextInput, but the soft keyboard does not seem to respond to it.
At this moment, I don't think there is a correct solution.
The best we can have is
(2) always switch the focus back to FlutterField as soon as the NativeField was focused.
I am running into this set of problems as well. To me it feels as if the flutter field has the SupportsDirectInteraction trait set. With VoiceOver on, simply touching a text field makes the keyboard come up. Normally, this should only happen with a double tap once the text field has VoiceOver focus (the frame around it). Could that be part of the problem: The Flutter field swallowing gestures it should not?
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
chunhtai commentedon Dec 8, 2020
Flutter currently relying on voice over to pronounce focused soft keyboard key repeat user typing, and that seems to be buggy.
The native ios App relies on some internal mechanism to pronounce the change in textfield. It does not seem to be public documented, I will keep digging.
chunhtai commentedon Dec 10, 2020
I can't really tell how they decide to pronounce the character. I have asked a question in stackoverflow https://stackoverflow.com/questions/65225792/voiceover-does-not-repeat-typed-character-on-custom-text-view-with-uitextinput
If we can't figure this out, we may be able to use UIAccessibilityAnnouncementNotification to force voice over to announce the typing.
yama3nomori commentedon Dec 30, 2020
I have the same question.
I tried to add any properties of Textfield() and TextFormField().
But VoiceOver cannot announce characters.
When I tapped a edit box on iOS apps, VoiceOver usually focused the edit box.
But it focus keyboard made by Flutter apps.
I'm thinking at the curse.
But I don't know how to solve it.
Hixie commentedon Jan 6, 2021
Update: We're not sure how to approach this; waiting for feedback from the customer.
Hixie commentedon Jan 13, 2021
@pcsosinski says he will reach out to the customer next week.
yasargil commentedon Jan 19, 2021
We had an accessibility review of our prototype app written with flutter (Engine ref 4797b06) and this bug came up. Except that voiceover never announced a single character typed. For user which rely on that feedback the keyboard is unusable in that state.
Not much to find about his bug except this one:
https://stackoverflow.com/questions/16270243/make-voiceover-announce-typed-deleted-characters-for-uikeyinput
Edit i can't reproduce the problem in another app from us which was build with flutter 1.17(Not sure about that). engine revision for reference: ee76268252c22f5c11e82a7b87423ca3982e51a7
chunhtai commentedon Jan 19, 2021
@yasargil thanks that is very helpful, I will look more into it
chunhtai commentedon Jan 19, 2021
yes, I can confirm this is a regression, it works correctly before 1.17.0.
3 remaining items
Hixie commentedon Jan 26, 2021
@chunhtai Is it possible to prototype the solution you describe just enough to tell if it would work?
chunhtai commentedon Jan 27, 2021
I prototyped it, it doesn't work. The soft keyboard only listens to UIView that implements UITextInput. The last suggestion makes UIAccessibilityElement to implement UITextInput, but the soft keyboard does not seem to respond to it.
At this moment, I don't think there is a correct solution.
The best we can have is
(2) always switch the focus back to FlutterField as soon as the NativeField was focused.
and makes NativeField harder to be reached.
xster commentedon Jan 27, 2021
Does moving the native field to the bottom right off-screen not work either?
chunhtai commentedon Jan 27, 2021
no, it does not work, it still receives focus in this scenario
Details
MarcoZehe commentedon Feb 4, 2021
I am running into this set of problems as well. To me it feels as if the flutter field has the SupportsDirectInteraction trait set. With VoiceOver on, simply touching a text field makes the keyboard come up. Normally, this should only happen with a double tap once the text field has VoiceOver focus (the frame around it). Could that be part of the problem: The Flutter field swallowing gestures it should not?
pcsosinski commentedon Feb 18, 2021
this issue was present in 1.17 and 1.22 correct?
chunhtai commentedon Feb 18, 2021
yes its a regression.
pcsosinski commentedon Feb 24, 2021
we're not planning to pick this into 1.26, the 1.27 beta release will be branching soon.
github-actions commentedon Aug 5, 2021
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.