Skip to content

Word 365: ignore UIA notification events seen after performing various editing functions#10857

Merged
feerrenrut merged 3 commits into
nvaccess:masterfrom
josephsl:i10851wordUIANotification
Mar 30, 2020
Merged

Word 365: ignore UIA notification events seen after performing various editing functions#10857
feerrenrut merged 3 commits into
nvaccess:masterfrom
josephsl:i10851wordUIANotification

Conversation

@josephsl

@josephsl josephsl commented Mar 9, 2020

Copy link
Copy Markdown
Contributor

Link to issue number:

Fixes #10851

Summary of the issue:

In Word 365, word document UIA object fires UIA notification events after editing functions are performed. For example, NVDA will say "delete back word" when Control+Backspace is pressed.

Description of how this pull request fixes the issue:

Added a "dummy" UIA notification event handler in NVDAObjects.UIA.wordDocument.WordDocument class that simply returns, thus making NVDA ignore UIA notification events.

Testing performed:

Tested with Word 365, NVDA source code, and a somewhat limited fix in Windows 10 App Essentials add-on.

Known issues with pull request:

None

Change log entry:

Bug fixes:

In recent releases of Microsoft Word 365, NVDA will no longer announce "delete back word" when Control+Backspace is pressed while editing a document.

josephsl added 2 commits March 8, 2020 22:48
…10851.

In recent Word 365 releases, UIA notification events are fired by Word document object when editing functions are performed such as 'delete back word' being announced when Control+Backspace is pressed. Thus ignore these messages.
@josephsl josephsl requested a review from michaelDCurran March 9, 2020 05:58

@LeonarddeR LeonarddeR left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I"m afraid this will also kill useful notifications, such as when someone starts collaborating with you on a document

@josephsl

josephsl commented Mar 9, 2020 via email

Copy link
Copy Markdown
Contributor Author

…ements. Re nvaccess#10851.

Reviewed by Leonard de Ruijter: there are messages in Word 365 that are announced using UIA notification. Therefore only suppress delete messages (activity ID: AccSN2).

@feerrenrut feerrenrut left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have tested this and confirmed that "delete back word" is no longer reported. I did not test that other UIA notifications are still reported.

@josephsl Could you comment on any testing you have done to that effect?

@josephsl

josephsl commented Mar 27, 2020 via email

Copy link
Copy Markdown
Contributor Author

@feerrenrut feerrenrut left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @josephsl

@feerrenrut feerrenrut dismissed LeonarddeR’s stale review March 30, 2020 10:27

The concern has been resolved.

@feerrenrut feerrenrut merged commit 00173d7 into nvaccess:master Mar 30, 2020
@nvaccessAuto nvaccessAuto added this to the 2020.1 milestone Mar 30, 2020
@feerrenrut feerrenrut modified the milestones: 2020.1, 2020.2 Mar 30, 2020
feerrenrut added a commit that referenced this pull request Mar 30, 2020
@josephsl josephsl deleted the i10851wordUIANotification branch January 2, 2021 19:28
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.

Control+backspace reports "DeleteBackWord" in Word 365

4 participants