nvda
c5913090 - Ignore hidden text in richEdit controls accessed with ITextDocument (PR #13618)

Commit
3 years ago
Ignore hidden text in richEdit controls accessed with ITextDocument (PR #13618) Summary of the issue: When accessing a RichEdit control with the ITextDocument object interface, hidden text was not ignored I.E. hidden text was announced, and could be navigated through with the review cursor. Example: The hidden text included at the start of hyperlinks in RichEdit controls, like: HYPERLINK "<URL>" So therefore for a link for NV access, NVDA announces: link HYPERLINK "https://www.nvaccess.org" NV access out of link Instead this should be: link NV Access out of link Description of change: - No longer observe the 'Fetch Formatting after the cursor' option in the 'document formatting' settings for RichEdit controls. This process is no longer as slow as it was in Windows XP. This is required to split on the boundaries of hidden text. Allowing reporting the start and end of links within a line. - Skip over hidden text, not producing a formatField or str. when moving by text unit (character, word etc), skip over hidden text to ensure the review cursor does not land on or report any hidden text. This is is done by checking after the move if the range is marked as hidden, if so, keep moving by the unit until outside the hidden text. Co-authored-by: Reef Turner <reef@nvaccess.org>
Parents
Loading