Skip to content

merge beta to master#15236

Merged
seanbudd merged 2 commits into
masterfrom
beta
Aug 1, 2023
Merged

merge beta to master#15236
seanbudd merged 2 commits into
masterfrom
beta

Conversation

@seanbudd
Copy link
Copy Markdown
Member

@seanbudd seanbudd commented Aug 1, 2023

No description provided.

FalkoBabbage and others added 2 commits July 31, 2023 15:46
Fix-up for #14690

Summary of the issue:
f-string was written as "f ...." instead of f"...."
…n the same link. (#15234)

Fixes #15211

Summary of the issue:
After merging of pr #14611, tabbing through a message in Windows Mail would cause the caret / focus to get stuck and not move forward to the next element in tab order.
This seems to be because BrowseModeDocument's gainFocus event updates the caret to the position of the element in the document that just gained focus. This is appropriate for web documents where NVDA manages the caret itself, but not for documents where the caret is managed by the application, such as the MS Word mail message viewer.
This has most likely been a problem in some way for a long time, but pr #14611 made it much more obvious as it greatly increased the amount of focus events within documents now spoken / handled.

Description of user facing changes
NVDA no longer gets stuck when tabbing through a message in Windows Mail.

Description of development approach
Suppressing of caret movement in BrowseModeDocument's gainFocus event is controled by a new private variable on the CursorManager class. It is False by default, which does not allow the caret movement to occur. However, for ReviewCursorManager and VirtualBuffer classes, it is True, allowing the existing caret movement behaviour, as in these situations the caret is managed entirely by NVDA.
This then means that in the cases where a CursorManager is used that is not VirtualBuffer or ReviewCursorManager, which is just Microsoft Word browse mode, NVDA will not move the caret itself on gainFocus events, as the application itself will already do this.
@seanbudd seanbudd requested a review from a team as a code owner August 1, 2023 01:28
@seanbudd seanbudd requested a review from michaelDCurran August 1, 2023 01:28
@seanbudd seanbudd merged commit 467071c into master Aug 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants