Skip to content

Commit 66585c8

Browse files
Merge 1c76d9a into 5182cd9
2 parents 5182cd9 + 1c76d9a commit 66585c8

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

source/NVDAObjects/IAccessible/ia2Web.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,12 @@ def _get_roleText(self):
194194
return roleText
195195
return super().roleText
196196

197+
def _get_roleTextBraille(self) -> str:
198+
roleTextBraille = self.IA2Attributes.get('brailleroledescription')
199+
if roleTextBraille:
200+
return roleTextBraille
201+
return super().roleTextBraille
202+
197203
def _get_states(self):
198204
states=super(Ia2Web,self).states
199205
# Ensure that ARIA gridcells always get the focusable state, even if the Browser fails to provide it.

source/virtualBuffers/gecko_ia2.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,9 @@ def _normalizeControlField(self, attrs): # noqa: C901
140140
roleText=attrs.get("IAccessible2::attribute_roledescription")
141141
if roleText:
142142
attrs['roleText']=roleText
143+
roleTextBraille = attrs.get("IAccessible2::attribute_brailleroledescription")
144+
if roleTextBraille:
145+
attrs['roleTextBraille']=roleTextBraille
143146
if attrs.get("IAccessible2::attribute_dropeffect", "none") != "none":
144147
states.add(controlTypes.State.DROPTARGET)
145148
if role==controlTypes.Role.LINK and controlTypes.State.LINKED not in states:

0 commit comments

Comments
 (0)