-
Notifications
You must be signed in to change notification settings - Fork 6k
[iOS TextInput] Disables system keyboard for TextInputType.none #26979
[iOS TextInput] Disables system keyboard for TextInputType.none #26979
Conversation
| int _textInputClient; | ||
| const char* _selectionAffinity; | ||
| FlutterTextRange* _selectedTextRange; | ||
| UIInputViewController* _inputViewcController; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a small typo
|
Thank you, works great! |
justinmc
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
Does Android already disable the system keyboard?
|
I assume developer uses this for custom keyboard? can you double check whether using the custom keyboard with the voice over on still pronounce feedback when you type? |
|
@chunhtai I couldn't test voiceover on simulator (but the accessibility inspector shows the text field as a button, nothing seems to change in the inspector when I disable/enable the system keyboard). On device I don't have ways to enter new text but it pronounces the current content. |
|
@LongCatIsLooong, the simulator is fine. For device, can you try to simulate a custom keyboard? for example, have a button that insert a character into the textfield when pressed, the voiceover should announce the character that got inserted |
|
Wouldn't the button steal the focus from the text field in that case? Oh let me try using the ontapped callback. |
|
@LongCatIsLooong yes, It is the same for for system keyboard, too. TextField announce the key feedback even when the keyboard strokes have the focus. |
|
Ok yeah It does pronounce the new character if I focus the text field first. |
chunhtai
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* b035192 Roll Dart SDK from e6e47f919791 to 59f9594aed9a (1 revision) (flutter/engine#27032) * 9e69740 [refactor] Migrate to View.focus.*. (flutter/engine#27005) * 9928f4f Android: add support for TextInputType.none (flutter/engine#26585) * c03f144 [iOS TextInput] Disables system keyboard for TextInputType.none (flutter/engine#26979) * 2384128 Roll Skia from 1df8756419ee to 4716a7681e4a (7 revisions) (flutter/engine#27035)
Continuation of #26773
/cc @jpnurmi
Pre-launch Checklist
writing and running engine tests.
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.