Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for inappropriate distance announcement when pressing shift+tab from Outlook message #11925

Merged
merged 4 commits into from
Jan 20, 2021

Conversation

CyrilleB79
Copy link
Collaborator

Link to issue number:

Fixes #10254

Summary of the issue:

When writing a message in MS Outlook, shift+tab may be used to go from the message body to the last header field (subject or attachments). However, NVDA report a distance before announcing the newly focused object (subject field or attachments list).

Description of how this pull request fixes the issue:

As already done for messages being read, I now check the result of the shift+tab action also in messages in edition. If no caret movement is detected, do not report anything more (indent distance, table cell change).
For this, I have created a BaseOutlookWordDocument that inherits from NVDAObjects.window.winword.WordDocument to override the script_tab to perform this check.

Testing performed:

With a message in edition, tested that shift+tab does not report a distance if the focus jumps out of the message body in the following cases:

  • caret initially in plain text
  • table located at the very beginning of the message and caret initially located in the first cell

Tested that Tab and shift+Tab still works in tables to move from cell to cell.

When not in a table (in plain text, checked that tab still repots the indent distance.

Performed this test with UIA for Word disabled and enabled.

Known issues with pull request:

None

Change log entry:

Section: Bug fixes

In MS Outlook, inappropriate distance reporting when shift+tabbing from message body to subject field should not occur anymore. (#10254)

… go back to the e-mail's headers or attachments should not announce a distance anymore.
@CyrilleB79 CyrilleB79 changed the title When writing an e-mail in MS Outlook, pressing shift+tab keystroke to… Fix for inappropriate distance announcement when pressing shift+tab from Outlook message Dec 10, 2020
@AppVeyorBot
Copy link

See test results for failed build of commit 4aa8f2889b

@michaelDCurran michaelDCurran merged commit 5daf693 into nvaccess:master Jan 20, 2021
@nvaccessAuto nvaccessAuto added this to the 2021.1 milestone Jan 20, 2021
@CyrilleB79 CyrilleB79 deleted the outlookShiftTab branch January 21, 2021 13:27
CyrilleB79 added a commit to CyrilleB79/nvda that referenced this pull request Jan 22, 2021
CyrilleB79 added a commit to CyrilleB79/nvda that referenced this pull request Jan 25, 2021
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.

Unwanted extra speech when shift+tabbing bfrom e-mail body to subject field in MS Outlook
4 participants