Cause of bug : The issue happens when preedit_string == commit_string, In this case, on commit string we dont't receive updateSelectionBounds from blink(since bounds is not changed and same as in preedit mode). Calculation of cursor position happens on updateSelectionBounds, So In this case after commit it doesn't happen and the current cursor position is left as last calculated cursor position. this bug can happpen even when word suggestion is enabled and preedit == commit string.
I couldn't find direct elegant solution of this so trying to tweak some cases and check for side effect.May be forcing updateSelectionBounds after commit will work
Cause of bug : The issue happens when preedit_string == commit_string, In this case, on commit string we dont't receive updateSelection Bounds from blink(since bounds is not changed and same as in preedit mode). Calculation of cursor position happens on updateSelection Bounds, So In this case after commit it doesn't happen and the current cursor position is left as last calculated cursor position. this bug can happpen even when word suggestion is enabled and preedit == commit string.
I couldn't find direct elegant solution of this so trying to tweak some cases and check for side effect.May be forcing updateSelection Bounds after commit will work