Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[macOS] Backspace collapses composing region on macOS #78061

Closed
@cbracken

Description

@cbracken

Repro steps:

  1. In a textfield such as in https://github.com/cbracken/jp_flutter switch input mode to Japanese, then enter the text 日本語 (type: 'nihonngo').
  2. Press backspace.

Expected result: Textfield contains the text にほん
Actual result: Textfield contains the text にほん日本

Taking a look at this under lldb:

  1. The character 語 is deleted from the end of the string
  2. The composing region is incorrectly collapsed to (0,0)
  3. TextInputModel::UpdateComposingText is called with the new composing text (にほん)

As a result, the new composing text is injected into the string at (0,0) rather than replacing the text 日本語.

/cc @dkwingsmt since I'm wondering if this may be related to the new direct keypress handling.

Part of #30660

Metadata

Metadata

Labels

P1High-priority issues at the top of the work lista: desktopRunning on desktopc: regressionIt was better in the past than it is nowengineflutter/engine repository. See also e: labels.platform-iosiOS applications specificallyplatform-macBuilding on or for macOS specifically

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions