[GH-ISSUE #471] [Bug] Cursor sometimes jumps to top line when inputting Japanese text #215

Closed
opened 2026-03-23 20:34:01 +00:00 by mirror · 2 comments
Owner

Originally created by @negiboudu on GitHub (Apr 29, 2022).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/471

Originally assigned to: @appflowy on GitHub.

Describe the bug
In Japanese text (kana) input mode, writing some text, sometimes suddenly cursor jumps to top line.
At that time, many errors appear in the console log like this:

flutter: ┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
flutter: │ #0   Log.error (package:flowy_sdk/log.dart:38:24)
package:flowy_sdk/log.dart:38
flutter: │ #1   DocumentBloc._composeDelta.<anonymous closure> (package:app_flowy/workspace/application/doc/doc_bloc.dart:120:13)
package:app_flowy/…/doc/doc_bloc.dart:120
flutter: ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
flutter: │ ⛔ Receive : insert⟨ いnんs⏎ ⟩
flutter: └───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
flutter: ┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
flutter: │ #0   Log.error (package:flowy_sdk/log.dart:38:24)
package:flowy_sdk/log.dart:38
flutter: │ #1   DocumentBloc._composeDelta.<anonymous closure> (package:app_flowy/workspace/application/doc/doc_bloc.dart:121:13)
package:app_flowy/…/doc/doc_bloc.dart:121
flutter: ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
flutter: │ ⛔ Expected : insert⟨ いんs⏎ ⟩
flutter: └───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

To Reproduce

  1. Change the input mode to Japanese text.
  2. Keep typing any text.

Screenshots
screenshot 2022-04-30 4 07 33

Desktop (please complete the following information):

  • OS: MacOS Big Sur 11.6.5
  • Browser: chrome
  • Version: 100.0.4896.127

Additional context
Maybe, this issue's cause is event called each KeyDown.
In Japanese text input mode, the flow is as follows:
input -> convert -> decision
It appears that Event is called each "input", but perhaps should be called after "decision".

Originally created by @negiboudu on GitHub (Apr 29, 2022). Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/471 Originally assigned to: @appflowy on GitHub. **Describe the bug** In Japanese text (kana) input mode, writing some text, sometimes suddenly cursor jumps to top line. At that time, many errors appear in the console log like this: ``` flutter: ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── flutter: │ #0 Log.error (package:flowy_sdk/log.dart:38:24) package:flowy_sdk/log.dart:38 flutter: │ #1 DocumentBloc._composeDelta.<anonymous closure> (package:app_flowy/workspace/application/doc/doc_bloc.dart:120:13) package:app_flowy/…/doc/doc_bloc.dart:120 flutter: ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ flutter: │ ⛔ Receive : insert⟨ いnんs⏎ ⟩ flutter: └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── flutter: ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── flutter: │ #0 Log.error (package:flowy_sdk/log.dart:38:24) package:flowy_sdk/log.dart:38 flutter: │ #1 DocumentBloc._composeDelta.<anonymous closure> (package:app_flowy/workspace/application/doc/doc_bloc.dart:121:13) package:app_flowy/…/doc/doc_bloc.dart:121 flutter: ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ flutter: │ ⛔ Expected : insert⟨ いんs⏎ ⟩ flutter: └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── ``` **To Reproduce** 1. Change the input mode to Japanese text. 2. Keep typing any text. **Screenshots** <img width="1439" alt="screenshot 2022-04-30 4 07 33" src="https://user-images.githubusercontent.com/2309728/166040812-e0cbd331-14c7-4bc1-bd81-08fdfbab7423.png"> **Desktop (please complete the following information):** - OS: MacOS Big Sur 11.6.5 - Browser: chrome - Version: 100.0.4896.127 **Additional context** Maybe, this issue's cause is event called each KeyDown. In Japanese text input mode, the flow is as follows: input -> convert -> decision It appears that Event is called each "input", but perhaps should be called after "decision".
mirror 2026-03-23 20:34:01 +00:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@negiboudu commented on GitHub (May 2, 2022):

I reproduced this issue.

  1. Change the input mode to Japanese text.
  2. Input any text. In this example "あいうお".
  3. Press Delete key.
  4. Input any text. In this example "え".
    -> Cursor jumped to beginning point, and the previously entered strings is entered together.

reproduced

<!-- gh-comment-id:1114943127 --> @negiboudu commented on GitHub (May 2, 2022): I reproduced this issue. 1. Change the input mode to Japanese text. 2. Input any text. In this example "あいうお". 3. Press Delete key. 4. Input any text. In this example "え". -> Cursor jumped to beginning point, and the previously entered strings is entered together. ![reproduced](https://user-images.githubusercontent.com/2309728/166247430-bef92faf-0942-498d-966b-4c1eb6e7938e.gif)
Author
Owner

@negiboudu commented on GitHub (Jun 11, 2022):

I confirmed that this issue was fixed in the latest version.

<!-- gh-comment-id:1152979453 --> @negiboudu commented on GitHub (Jun 11, 2022): I confirmed that this issue was fixed in the latest version.
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#215
No description provided.