-
Notifications
You must be signed in to change notification settings - Fork 26.7k
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
[iOS]When the keyboard type of the TextField is set to "numer", there is an issue of repeated characters with certain IME. #133424
Comments
Hi @abgne Could you please confirm this issue is only reproduced with Also, please switch to master channel and confirm if this issue still persists. Thank you! |
Hi @huycozy Thank you for your response! When the keyboard type is set to 'number', only the numeric keypad appears on the phone and cannot be switched. However, this is not the case on the Pad. Moreover, I don't have any physical Android Pad, so I'm uncertain whether this issue exists on Android Pad. After switching to the main branch, the issue still persists. [!] Flutter (Channel master, 3.14.0-12.0.pre.72, on macOS 13.1 22C65 darwin-x64, locale zh-Hant-TW)
• Flutter version 3.14.0-12.0.pre.72 on channel master at /Users/user/Development/flutter
! Warning: `dart` on your path resolves to /usr/local/Cellar/dart/3.1.0/libexec/bin/dart, which is not inside your current Flutter SDK checkout at
/Users/user/Development/flutter. Consider adding /Users/user/Development/flutter/bin to the front of your path.
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 42e2f4fb3e (53 分鐘前), 2023-08-28 19:43:58 -0400
• Engine revision bd2132a081
• Dart version 3.2.0 (build 3.2.0-114.0.dev)
• DevTools version 2.26.2
• Pub download mirror https://pub.dev
• Flutter download mirror https://storage.googleapis.com
• If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades. (base) ➜ input_bug flutter --version
Flutter 3.14.0-12.0.pre.72 • channel master • https://github.com/flutter/flutter.git
Framework • revision 42e2f4fb3e (2 小時前) • 2023-08-28 19:43:58 -0400
Engine • revision bd2132a081
Tools • Dart 3.2.0 (build 3.2.0-114.0.dev) • DevTools 2.26.2 The APP shown in the following video was tested using the master version. 3.14.0-12.0.pre.72.MP4I've tested all 11 types of TextInputType. Only number/phone have issues, mainly because they switch to the numeric keypad (when toggling within the last used IME). Test video for the 11 types.TextInputType.MP4I've tested and found it working correctly in version 3.7.x. However, subsequent versions from 3.10.x to the latest have issues. If there are any tests that can help you pinpoint the issue, please let me know! |
Thanks for the detailed tests. I also checked this on Android tablet emulator and other platforms (macOS, web) but can't see the issue. It also can't reproduce on an Android physical phone (since the keyboard layout can't be changed for language; same to iPhone) Labeling this as an iOS platform-specific issue. If anyone facing this issue can reproduce it on an Android physical tablet, please write in the comments. Thanks! |
The |
Issue is assigned to multiple teams (design, ios). Please ensure the issue has only one |
This is reproducible on simulators. The iPad system Japanese keyboard is a bit different from that on iPhones and so far I'm not able to reproduce the issue on an iPhone. |
Fixes flutter/flutter#133424 The `-[TextInputDelegate selectionDidChange:]` call actually triggers some unwanted keyboard NLP actions that generate a bunch of candidates and automatically accept the first candidate. This causes `-[UITextInput setMarkedText:selection]` to be called with the first candidate and that inserts extraneous characters after the user types certain characters on the iPad software keyboard. [C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style
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 |
Fixes flutter/flutter#133424 The `-[TextInputDelegate selectionDidChange:]` call actually triggers some unwanted keyboard NLP actions that generate a bunch of candidates and automatically accept the first candidate. This causes `-[UITextInput setMarkedText:selection]` to be called with the first candidate and that inserts extraneous characters after the user types certain characters on the iPad software keyboard. [C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style
Is there an existing issue for this?
Steps to reproduce
Expected results
I expect only a single "1".
Actual results
However, in addition to the number key "1" that we pressed, an additional "1" will automatically appear.
Code sample
Code sample
main.dart
Screenshots or Video
Screenshots / Video demonstration
The issue occurs only on the actual iPad device; the simulator works normally.
RPReplay_Final1693185994.MP4
Logs
Logs
[Paste your logs here]
Flutter Doctor output
Doctor output
The text was updated successfully, but these errors were encountered: