Skip to content

Commit 85226a6

Browse files
Merge 5d78b61 into f06b19f
2 parents f06b19f + 5d78b61 commit 85226a6

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

source/NVDAObjects/IAccessible/ia2TextMozilla.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,16 @@ def _getControlFieldForObject(self, obj, ignoreEditableText=True):
8080
uniqueID = obj.IA2UniqueID
8181
if uniqueID is not None:
8282
controlField["uniqueID"] = uniqueID
83+
# #16631: Outlook.com /modern Outlook represent addresses in To/CC/BCC fields as labelled buttons.
84+
# These buttons are non-contenteditable within a parent contenteditable.
85+
# Ensure their label (name) is reported as the content
86+
# as the caret cannot move through them.
87+
if (
88+
controlTypes.state.State.EDITABLE not in obj.states
89+
and obj.parent
90+
and controlTypes.state.State.EDITABLE in obj.parent.states
91+
):
92+
controlField['content'] = obj.name
8393
return controlField
8494

8595
def _isCaretAtEndOfLine(self, caretObj: IAccessible) -> bool:

user_docs/en/changes.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ A warning message will inform you if you try writing to a non-empty directory. (
8181
* Speech is no longer silent after disconnecting from and reconnecting to a Remote Desktop session. (#16722, @jcsteh)
8282
* Support added for text review commands for an object's name in Visual Studio Code. (#16248, @Cary-Rowen)
8383
* Playing NVDA sounds no longer fails on a mono audio device. (#16770, @jcsteh)
84+
* NVDA will report addresses when arrowing through To/CC/BCC fields in outlook.com / Modern Outlook. (#16856)
8485

8586
### Changes for Developers
8687

0 commit comments

Comments
 (0)