singerdmx / flutter-quill

Rich text editor for Flutter
https://pub.dev/packages/flutter_quill
MIT License
2.6k stars 839 forks source link

Text entered with Japanese IME on macOS duplicates phrases beyond the first when confirmed #2178

Open agata opened 2 months ago

agata commented 2 months ago

Is there an existing issue for this?

Flutter Quill version

10.5.5

Steps to reproduce

  1. Enter a sentence with two or more phrases using Japanese IME. Example: きょうはいえにかえります This sentence consists of three phrases, recognized during IME conversion as: きょうは いえに かえります

  2. Press the space key to convert using IME, then press Enter to confirm.

Expected results

The text entered in step 1 is converted and correctly inputted into the editor.

Example: 今日は家に帰ります Where 今日は is the first phrase, 家に is the second phrase, 帰ります is the third phrase.

Actual results

The text starting from the second phrase is duplicated upon confirmation.

Example: 今日は家に帰ります家に帰ります The second and third phrases are duplicated: The input becomes 1st phrase + 2nd phrase + 3rd phrase + 2nd phrase + 3rd phrase.

Code sample

No response

Additional Context

There are several types of Japanese IME, but the result was the same with any IME used.

Screencast:

https://github.com/user-attachments/assets/decffbd9-f87d-4727-8c94-4f63c51cbc50

Flutter Doctor:

Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, 3.24.1, on macOS 14.5 23F79 darwin-arm64, locale ja-JP) [✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0) [✓] Xcode - develop for iOS and macOS (Xcode 15.3) [✓] Chrome - develop for the web [✓] Android Studio (version 2023.1) [✓] VS Code (version 1.92.2) [✓] Connected device (6 available) ! Error: Browsing on the local area network for ToshitakaさんのApple Watch. Ensure the device is unlocked and discoverable via Bluetooth. (code -27) [✓] Network resources

• No issues found!

agata commented 2 months ago

I believe this might be a Flutter bug. It has been reported here:

CatHood0 commented 2 months ago

Does this issue still persisst? If don't i will close it

EchoEllet commented 2 months ago

@agata Can you confirm if this still an issue?

agata commented 2 months ago

@CatHood0 @EchoEllet

This issue is still not resolved. I have a workaround, but it might not be the correct solution. I will continue investigating further.

CatHood0 commented 2 months ago

There's no problem. Thanks for taking the efforts and the time to help us.