-
Notifications
You must be signed in to change notification settings - Fork 331
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor and improve text widget navigation and selection
- Make the selection box be extended by newlines again. - Avoid selection box overflowing the element, by force clipping in such situations. - For word-wrapped text widgets, allow the edit region to "overflow" with blank spaces. Instead, force the element not to scroll, and clamp the cursor to the content space. - For `text-align: right`, don't remove any soft-wrapped space at the end of the line from the edit region. Instead, adjust the alignment offset to position the line appropriately. - This ensures that newline selection extension also works for righ alignment. - Share selection and composition IME geometry. - Adjust composition underline position so that it sits at a fixed position compared to the text cursor. - Avoid doing unnecessary string width calculations during alignment.
- Loading branch information
Showing
2 changed files
with
121 additions
and
143 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.