Open BoCupp-Microsoft opened 5 years ago
TextInputState struct is used for handling IME on the browser side. The TextInputState struct contains information such as type, mode, text in edit control, selection, etc. are used by the input method to handle IME. This struct is used across all platforms for IMEs.
We only run the diffing algorithm to update the view of Windows Text Services when there is a layout/view change.
RE: When the editing context is changed in edit control, a mojo message is sent to the browser process to update the TextInputState struct to stay in sync with the focused edit control.
What's the trigger for the mojo message? Transient state generally isn't interesting. As a principle I'm thinking the view we provide to Windows Text Services should be aligned with the view provided to the user (when we update the screen).