Skip to content

[macOS] Switching textfields with IME enabled results in duplicate input #92060

Closed

Description

@cbracken

Repro steps:

  1. Create a flutter app with two textfields
  2. Focus the cursor in the first textfield
  3. Switch to Japanese input mode and enter text (e.g. type, one character at a time: n i h o n n g o)
  4. Without committing (Return) or cancelling (Escape) input, focus the curse in the second text field

Expected behaviour: the OS/framework arenotified that the composing (mark) text is committed, and that the OS mark text should be cleared

Actual behaviour: IME state still contains the same composing (mark) text as it had when composing in the first text field. The first textfield behaves as though the compose (mark) text was committed but that's likely because we send compose text inline with the full text string, and compose start/end position separately. The framework still likely thinks the field is composing.

Activity

  1. added
    a: text inputEntering text in a text field or keyboard related problems
    platform-macosBuilding on or for macOS specifically
    a: annoyanceRepeatedly frustrating issues with non-experimental functionality
    P2Important issues not at the top of the work list
    on Oct 19, 2021
  2. self-assigned this
    on Oct 19, 2021
  3. removed their assignment
    on Oct 26, 2021
  4. cbracken commented on Nov 9, 2021

    @cbracken
    MemberAuthor

    A similar issue was fixed on windows in flutter-team-archive/engine#29146

    SHA: flutter-team-archive/engine@de07651

  5. self-assigned this
    on Mar 5, 2022
  6. cbracken commented on Mar 5, 2022

    @cbracken
    MemberAuthor
  7. cbracken commented on Mar 7, 2022

    @cbracken
    MemberAuthor

    Fixed by flutter-team-archive/engine#31849 on main branch.

  8. github-actions commented on Mar 21, 2022

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  9. locked as resolved and limited conversation to collaborators on Mar 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work lista: annoyanceRepeatedly frustrating issues with non-experimental functionalitya: desktopRunning on desktopa: text inputEntering text in a text field or keyboard related problemsplatform-macosBuilding on or for macOS specifically

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions