Skip to content

Commit 9780889

Browse files
Merge f2967af into daaddab
2 parents daaddab + f2967af commit 9780889

3 files changed

Lines changed: 10 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:

user_docs/en/changes.t2t

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ What's New in NVDA
1313
-
1414
- In Mozilla Firefox and Google Chrome, NVDA now reports when a control opens a dialog, grid, list or tree if the author has specified this using aria-haspopup. (#14709)
1515
- It is now possible to use system variables (such as ``%temp%`` or ``%homepath%``) in the path specification while creating portable copies of NVDA. (#14680)
16+
- Added support for the ``aria-brailleroledescription`` ARIA 1.3 attribute, allowing web authors to override the type of an element shown on the Braille display. (#14748)
1617
-
1718

1819

0 commit comments

Comments
 (0)