[GH-ISSUE #2459] [Bug] Chinese Input bugs in Fcitx5-chewing and Wayland #9466

Closed
opened 2026-03-24 21:13:29 +00:00 by mirror · 9 comments
Owner

Originally created by @tobiichi3227 on GitHub (May 5, 2023).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/2459

Bug Description

When I typing Chinese by using Fcitx5, the previous typed text were replaced by now typed.
And when end of typing, the text length became twice

How to Reproduce

Using Fcitx5 input method

Expected Behavior

Like typing in English

Operating System

Arch Linux

AppFlowy Version(s)

0.1.4

Screenshots

input

Additional Context

I am using Wayland, and I didn't test this bug in Xorg
Maybe Xorg didn't have this bug

Originally created by @tobiichi3227 on GitHub (May 5, 2023). Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/2459 ### Bug Description When I typing Chinese by using Fcitx5, the previous typed text were replaced by now typed. And when end of typing, the text length became twice ### How to Reproduce Using Fcitx5 input method ### Expected Behavior Like typing in English ### Operating System Arch Linux ### AppFlowy Version(s) 0.1.4 ### Screenshots ![input](https://user-images.githubusercontent.com/86729076/236369480-8c8795e1-f18f-4675-ac0a-673e58e5ac12.gif) ### Additional Context I am using Wayland, and I didn't test this bug in Xorg Maybe Xorg didn't have this bug
mirror 2026-03-24 21:13:29 +00:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@annieappflowy commented on GitHub (May 6, 2023):

https://github.com/flutter/flutter/issues/113909#issuecomment-1311478223
This is a known issue

<!-- gh-comment-id:1537068286 --> @annieappflowy commented on GitHub (May 6, 2023): https://github.com/flutter/flutter/issues/113909#issuecomment-1311478223 This is a known issue
Author
Owner

@annieappflowy commented on GitHub (Sep 4, 2023):

Should be fixed in the latest release. Let us know if it doesn't work for you
image

<!-- gh-comment-id:1705317842 --> @annieappflowy commented on GitHub (Sep 4, 2023): Should be fixed in the latest [release](https://github.com/AppFlowy-IO/AppFlowy/releases). Let us know if it doesn't work for you <img width="224" alt="image" src="https://github.com/AppFlowy-IO/AppFlowy/assets/12026239/46277bf9-3fd0-4b0c-9fc8-1333d17e9a97">
Author
Owner

@Crany-web commented on GitHub (Dec 13, 2023):

Samuti ilmnes viga Fcitx5 kasutamisel hiina keele sisestamiseks, kui kasutasin AppFlowy uusimat versiooni AUR-i hoidlas. Kasutan X11.

<!-- gh-comment-id:1854192004 --> @Crany-web commented on GitHub (Dec 13, 2023): Samuti ilmnes viga Fcitx5 kasutamisel hiina keele sisestamiseks, kui kasutasin AppFlowy uusimat versiooni AUR-i hoidlas. Kasutan X11. <img src="https://raw.githubusercontent.com/Crany-web/log/main/AppFlowy.gif" />
Author
Owner

@nyacat commented on GitHub (Mar 26, 2024):

I have same issue as https://github.com/AppFlowy-IO/AppFlowy/issues/2459#issuecomment-1854192004

<!-- gh-comment-id:2019243134 --> @nyacat commented on GitHub (Mar 26, 2024): I have same issue as https://github.com/AppFlowy-IO/AppFlowy/issues/2459#issuecomment-1854192004
Author
Owner

@S-xgx1 commented on GitHub (Apr 6, 2024):

This problem still exists and can still be reproduced in wayland

<!-- gh-comment-id:2040968086 --> @S-xgx1 commented on GitHub (Apr 6, 2024): This problem still exists and can still be reproduced in wayland
Author
Owner

@S-xgx1 commented on GitHub (Apr 9, 2024):

我不知道keyboard_service_widget.dart文件修改的作用,我的参考:github.com/AppFlowy-IO/AppFlowy@f5cc6521fb
delta_input_on_replace_impl.dart内如果replacement开头出现空行,则无法正常处理输入法,但是replacement在non_delta_input_service.dart的apply方法内执行了format方法,导致无法在delta_input_on_replace_impl.dart内判断开头时是否是空格
但是用方向键移动插入指针到前面的字符不会产生响应,就像我下面这个视频展示的一样

https://github.com/AppFlowy-IO/AppFlowy/assets/31309149/b44039f7-c26e-49bf-a8a5-0c96e48ac3ec

但我不懂dart和flutter,不知如何修复,并且delta_input_on_replace_impl.dart的修复一定不符合规范和运行逻辑,我希望能帮我修好。
这是我的修改:068b7948ab8380f3c7ef655f9891a4f92a8ba518

可以的话我希望能修复输入问题,插入指针移动问题需要修复的话,也可以联系我,我能够提供测试设备和环境。

修复fcitx5和wayland下无法输入中文问题

我的英文不好,用中文回答了十分抱歉。

可以帮助我吗?@annieappflowy @LucasXu0

<!-- gh-comment-id:2044521137 --> @S-xgx1 commented on GitHub (Apr 9, 2024): 我不知道keyboard_service_widget.dart文件修改的作用,我的参考:https://github.com/AppFlowy-IO/AppFlowy/commit/f5cc6521fbcad8564c7193b705a5e5429b6d8e82 delta_input_on_replace_impl.dart内如果replacement开头出现空行,则无法正常处理输入法,但是replacement在non_delta_input_service.dart的apply方法内执行了format方法,导致无法在delta_input_on_replace_impl.dart内判断开头时是否是空格 但是用方向键移动插入指针到前面的字符不会产生响应,就像我下面这个视频展示的一样 https://github.com/AppFlowy-IO/AppFlowy/assets/31309149/b44039f7-c26e-49bf-a8a5-0c96e48ac3ec 但我不懂dart和flutter,不知如何修复,并且delta_input_on_replace_impl.dart的修复一定不符合规范和运行逻辑,我希望能帮我修好。 这是我的修改:[068b7948ab8380f3c7ef655f9891a4f92a8ba518](https://github.com/XGX1/appflowy-editor/commit/068b7948ab8380f3c7ef655f9891a4f92a8ba518) 可以的话我希望能修复输入问题,插入指针移动问题需要修复的话,也可以联系我,我能够提供测试设备和环境。 修复fcitx5和wayland下无法输入中文问题 我的英文不好,用中文回答了十分抱歉。 可以帮助我吗?@annieappflowy @LucasXu0
Author
Owner

@LucasXu0 commented on GitHub (Apr 10, 2024):

@XGX1 Really appreciate your testing and help. I'll try your changes and see if I can fix it on Linux as soon as possible.

<!-- gh-comment-id:2047508674 --> @LucasXu0 commented on GitHub (Apr 10, 2024): @XGX1 Really appreciate your testing and help. I'll try your changes and see if I can fix it on Linux as soon as possible.
Author
Owner

@Eason0729 commented on GitHub (Nov 17, 2024):

This issue still exist, is there anyone working on this now?

<!-- gh-comment-id:2481264753 --> @Eason0729 commented on GitHub (Nov 17, 2024): This issue still exist, is there anyone working on this now?
Author
Owner

@PeterWang-dev commented on GitHub (Apr 12, 2025):

Problem still exists. Any one working on it?

<!-- gh-comment-id:2798724740 --> @PeterWang-dev commented on GitHub (Apr 12, 2025): Problem still exists. Any one working on it?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AppFlowy-IO/AppFlowy#9466
No description provided.