appflowy-editor icon indicating copy to clipboard operation
appflowy-editor copied to clipboard

Fix wayland + fcitx5 input bug

Open S-xgx1 opened this issue 10 months ago • 7 comments

我不知道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的修复一定不符合规范和运行逻辑,我希望能帮我修好。 可以的话我希望能修复输入问题,插入指针移动问题需要修复的话,也可以联系我,我能够提供测试设备和环境。

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

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

S-xgx1 avatar Apr 10 '24 00:04 S-xgx1

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Apr 10 '24 00:04 CLAassistant

@XGX1 Thanks for your testing and help. Can you please try testing this PR? Here's the link: https://github.com/AppFlowy-IO/appflowy-editor/pull/765

LucasXu0 avatar Apr 11 '24 03:04 LucasXu0

@XGX1@XGX1 Thanks for your testing and help. Can you please try testing this PR? Here's the link: 感谢您的测试和帮助。您能尝试测试一下这个 PR 吗?这是链接: #765#765@XGX1 感谢您的测试和帮助。你能尝试测试这个 PR 吗?这是链接:#765

@XGX1感谢您的测试和帮助。您能尝试测试一下这个 PR 吗?这是链接: #765

这个测试是指把代码合并到我的设备上测试吗?我不懂这个

S-xgx1 avatar Apr 11 '24 04:04 S-xgx1

You can install gh first, which is a set of GitHub tools that allows you to easily clone a repository or checkout a branch.

After that, here are the steps you can follow to test the branch.

  • gh repo clone AppFlowy-IO/appflowy-editor
  • cd appflowy_editor
  • gh pr checkout 765
  • flutter pub get
  • flutter run

LucasXu0 avatar Apr 11 '24 05:04 LucasXu0

还是无法使用和之前演示的问题一样

S-xgx1 avatar Apr 11 '24 14:04 S-xgx1

You can install 您可以先安装ghgh first, which is a set of GitHub tools that allows you to easily clone a repository or checkout a branch.,这是一组 GitHub 工具,可让您轻松克隆存储库或签出分支。

您可以先安装gh ,这是一组 GitHub 工具,可让您轻松克隆存储库或签出分支。

After that, here are the steps you can follow to test the branch.之后,您可以按照以下步骤来测试分支。

之后,您可以按照以下步骤来测试分支。

* gh repo clone AppFlowy-IO/appflowy-editorgh 存储库克隆 AppFlowy-IO/appflowy-editorgh 存储库克隆 AppFlowy-IO/appflowy-editor

* cd appflowy_editorcd appflowy_editorcd appflowy_editor

* gh pr checkout 765gh 公关结账 765gh 公关结账 765

* flutter pub get扑扑酒吧得到扑扑酒吧得到

* flutter run扑腾跑扑腾跑

没有解决 log: log.txt 我输入了:zhongwen 显示:zhong wen zh中文ong w e zhong w zhong zhon zh zh o z

@LucasXu0

S-xgx1 avatar Apr 11 '24 14:04 S-xgx1

The log.txt file helps a lot.

LucasXu0 avatar Apr 12 '24 02:04 LucasXu0