mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-16 22:14:30 +00:00
EditorState.composing replaces EditorState.revision (and TextEditorHost::revision): an editor that reported composing and now does not ended the composition itself (a press in its text, a selection, an app edit over the marked text), and the engine interrupts the OS composition and drops its late events. TextEditor and the sheet grid report their marked text; editors that show none report false throughout. The reset fence ends only with the completion of the engine's latest request (ImeResetId); an earlier request's completion is stale. A request the integration can no longer answer (a pass with no IME output, an unfocused window) is retired and asked again when an owner returns. Trials: preedit and a click during composition for a canvas TextEditor, with one press per pass holding the late commit for the next pass (craft-text); reset requests and stale completions (craft-ui-contract).