Skip to content

Commit

Permalink
Also support UIA systemAlert in braille.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelDCurran committed Jun 14, 2017
1 parent 0233a48 commit 09a0d57
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/NVDAObjects/UIA/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1295,7 +1295,9 @@ def event_UIA_systemAlert(self):
This just reports the element that received the alert in speech and braille, similar to how focus is presented.
Skype for business toast notifications being one example.
"""
self.reportFocus()
speech.speakObject(self, reason=controlTypes.REASON_FOCUS)
# Ideally, we wouldn't use getBrailleTextForProperties directly.
braille.handler.message(braille.getBrailleTextForProperties(name=self.name, role=self.role))

class TreeviewItem(UIA):

Expand Down

0 comments on commit 09a0d57

Please sign in to comment.