ime: Keep cursor when confirming composition for SetCompositionRange.
SetCompositionRange needs to confirm existing composition first before starting a new composition. When doing so, it should keep the cursor position the same. Otherwise, the cursor may move as the result of a SetCompositionRange call, which then causes some IMEs to get stuck in a loop. The contract for SetCompositionRange is to keep the cursor in the same position, so changing the code to match that. Bug: 1010329 Change-Id: I011530e4a32c617c36736ff0c1be5351415f0cb2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2340116Reviewed-by:Keith Lee <keithlee@chromium.org> Commit-Queue: Darren Shen <shend@chromium.org> Cr-Commit-Position: refs/heads/master@{#795759}
Showing
Please register or sign in to comment