Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MozillaCompoundTextInfo: Don't adjust for the end of a line at the en…
…d of an object. (#16914) Fixup of #16745. Summary of the issue: In my work on #16745, I apparently neglected to consider the end of an inline object such as a link. In that case, adjusting for the line end caused NVDA to report blank when moving to the character after the link instead of reporting the actual character. Description of user facing changes When editing text in Firefox, NVDA now reports the correct character instead of blank when pressing right arrow to move out of a link. This doesn't need a change log entry if we can get this into beta because the bug will not have shipped in release. Description of development approach Return False in _isCaretAtEndOfLine if we're at the end of an object. While the end of an object could indeed be the end of a line, we don't need the special adjustment in this case and the adjustment causes problems if it isn't the end of a line. This also means we can remove the change in #16763 because that was only ever a problem for a line feed at the end of an object anyway. This new fix covers both cases
- Loading branch information