flutter-quill icon indicating copy to clipboard operation
flutter-quill copied to clipboard

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

Open agata opened this issue 1 year ago • 5 comments

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 avatar Sep 03 '24 15:09 agata

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

  • https://github.com/flutter/flutter/issues/153065
  • https://github.com/superlistapp/super_editor/issues/2217

agata avatar Sep 10 '24 02:09 agata

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

CatHood0 avatar Sep 21 '24 03:09 CatHood0

@agata Can you confirm if this still an issue?

EchoEllet avatar Sep 21 '24 13:09 EchoEllet

@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.

agata avatar Sep 22 '24 02:09 agata

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

CatHood0 avatar Sep 22 '24 04:09 CatHood0