-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Open
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: text inputEntering text in a text field or keyboard related problemsEntering text in a text field or keyboard related problemsplatform-webWeb applications specificallyWeb applications specificallyteam-webOwned by Web platform teamOwned by Web platform teamtriaged-webTriaged by Web platform teamTriaged by Web platform team
Description
The TextEditingDelta implementation on web currently continually updates an editingDeltaState during the process of text-input (beforeInput, onInput, compositionupdate), until we have arrived at a final editingDeltaState. Having it spread across many handlers can make it difficult to make updates to the DefaultTextEditingStrategy without breaking TextEditingDeltas. An example of this is flutter/engine#33590 which adds composing region tracking, but broke TextEditingDeltas at first (later resolved).
Proposal:
Use the lastEditingState and the newEditingState to determine the state of a TextEditingDelta, and centralize the logic into inferDeltaState.
mdebbar, antholeole and gildaswise
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: text inputEntering text in a text field or keyboard related problemsEntering text in a text field or keyboard related problemsplatform-webWeb applications specificallyWeb applications specificallyteam-webOwned by Web platform teamOwned by Web platform teamtriaged-webTriaged by Web platform teamTriaged by Web platform team