Skip to content

Commit

Permalink
NVDAObjects/UIA/word document: collect activity ID's for UIA notifica…
Browse files Browse the repository at this point in the history
…tions that should be silenced under a dedicated list. Re nvaccess#10950.

To prepare for cases where additional UIA notification activity Id's must be silenced, collect them under a dedicated list. In addition to AccSN2 (delete back word), add AccSN1 (font attributes toggle).
  • Loading branch information
josephsl committed Apr 13, 2020
1 parent e8cde2c commit 46fc7f5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions source/NVDAObjects/UIA/wordDocument.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,11 @@ class WordDocument(UIADocumentWithTableNavigation,WordDocumentNode,WordDocumentB
# Microsoft Word duplicates the full title of the document on this control, which is redundant as it appears in the title of the app itself.
name=u""

noNotificationActivityIds = [
"AccSN1", # #10950: font attributes
"AccSN2", # #10851: delete activity ID
]

def event_UIA_notification(self, activityId=None, **kwargs):
# #10851: in recent Word 365 releases, UIA notification will cause NVDA to announce edit functions
# such as "delete back word" when Control+Backspace is pressed.
Expand Down

0 comments on commit 46fc7f5

Please sign in to comment.