Fix selection movement when crossing editing boundaries.
When caret is moved by line,|SelectionModifier::PreviousLinePosition| and |SelectionModifier::NextLinePosition| both return the positions that could be crossing editing boundaries as there is no editability check in those APIs. In this patch we are matching other browsers in caret movement when user presses up/down arrow keys to navigate across editable boundaries to next/previous line and position the caret inside an editable region so it is rendered properly. Test: web_tests/editing/selection/select-line-up-down.html Bug: 964504 Change-Id: I596e006f4dcc42db3b74d0f2ed577f8e0b27f96b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2556007 Commit-Queue: Anupam Snigdha <snianu@microsoft.com> Reviewed-by:Yoshifumi Inoue <yosin@chromium.org> Cr-Commit-Position: refs/heads/master@{#831110}
Showing
Please register or sign in to comment