Skip to content

Commit

Permalink
NVDAObjects/UIA/word document: do not let UIA notification event proc…
Browse files Browse the repository at this point in the history
…eed if activity ID's are listed under no activity ID's list. Re nvaccess#10950.
  • Loading branch information
josephsl committed Apr 13, 2020
1 parent 46fc7f5 commit ce3e1df
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/NVDAObjects/UIA/wordDocument.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,9 +326,9 @@ class WordDocument(UIADocumentWithTableNavigation,WordDocumentNode,WordDocumentB
]

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.
if activityId == "AccSN2": # Delete activity ID
# In recent Word 365 releases, UIA notification will cause NVDA to announce edit functions
# such as "delete back word" when Control+Backspace is pressed or font attributes are toggled.
if activityId in self.noNotificationActivityIds:
return
super(WordDocument, self).event_UIA_notification(**kwargs)

Expand Down

0 comments on commit ce3e1df

Please sign in to comment.