Skip to content

Commit 4e57d3f

Browse files
authored
Merge ffb8ccd into b874768
2 parents b874768 + ffb8ccd commit 4e57d3f

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

source/NVDAObjects/IAccessible/__init__.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# A part of NonVisual Desktop Access (NVDA)
2-
# Copyright (C) 2006-2022 NV Access Limited, Babbage B.V.
2+
# Copyright (C) 2006-2023 NV Access Limited, Babbage B.V.
33
# This file is covered by the GNU General Public License.
44
# See the file COPYING for more details.
55

@@ -1688,7 +1688,7 @@ def event_valueChange(self):
16881688
return
16891689
return super(IAccessible, self).event_valueChange()
16901690

1691-
def event_alert(self):
1691+
def event_alert(self) -> None:
16921692
if self.role != controlTypes.Role.ALERT:
16931693
# Ignore alert events on objects that aren't alerts.
16941694
return
@@ -1702,9 +1702,11 @@ def event_alert(self):
17021702
if self in api.getFocusAncestors():
17031703
return
17041704
speech.speakObject(self, reason=controlTypes.OutputReason.FOCUS, priority=speech.Spri.NOW)
1705+
braille.handler.message(braille.getPropertiesBraille(name=self.name, role=self.role))
17051706
for child in self.recursiveDescendants:
17061707
if controlTypes.State.FOCUSABLE in child.states:
17071708
speech.speakObject(child, reason=controlTypes.OutputReason.FOCUS, priority=speech.Spri.NOW)
1709+
braille.handler.message(braille.getPropertiesBraille(name=self.name, role=self.role))
17081710

17091711
def event_caret(self):
17101712
focus = api.getFocusObject()

0 commit comments

Comments
 (0)