Skip to content

Cursor always at the front when typing emojis #24266

@GaryQian

Description

@GaryQian

The cursor often is stuck at the beginning of the TextField when typing strings of emojis (as well as some other types of characters)

Repro:

  • Open any flutter TextField (the one in flutter_gallery>material>text fields should do)
  • Type emoji characters, preferably ones with zero-width-joiners such as nation flags
  • Cursor is stuck at front, and tapping in the text works (new text shows up correctly, backspacing works) but the cursor does not appear in the right spot.

This sometimes goes away when there are other characters around the emoji string.

Metadata

Metadata

Assignees

No one assigned

    Labels

    a: text inputEntering text in a text field or keyboard related problemsa: typographyText rendering, possibly libtxtframeworkflutter/packages/flutter repository. See also f: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions