Skip to content

Commit 381781a

Browse files
Merge 753dbbf into 9329591
2 parents 9329591 + 753dbbf commit 381781a

2 files changed

Lines changed: 15 additions & 3 deletions

File tree

source/appModules/teams.py

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,22 @@ class PopOverMenu(Ia2Web):
1717
class AppModule(appModuleHandler.AppModule):
1818

1919
def chooseNVDAObjectOverlayClasses(self, obj, clsList):
20+
# #11821, #14355
21+
# Teams will sometimes create an element with an ARIA role of menu
22+
# at the same time another element gets focus,
23+
# E.g. an emoji menu appears every time a conversation message is focused.
24+
# Web frameworks such as Chromium will tend to fire a menu_popupStart event
25+
# when a node with a role of menu is added to the DOM.
26+
# NVDA's default behaviour for handling menu_popupStart is to set NVDA's focus to the menu
27+
# and cancel speech.
28+
# We should deliberately suppress this in Teams however,
29+
# Otherwise the focused message cannot be read.
30+
# Previously this was limited to message menus, however
31+
# As Teams keeps changing the layout,
32+
# and all menus in Teams do set focus to their first item when truly focused,
33+
# It is safer just to ignore all menu popupStart events within Teams content for now.
2034
if (
2135
Ia2Web in clsList
2236
and obj.IA2Attributes.get("xml-roles") == "menu"
23-
and obj.parent
24-
and obj.parent.parent
25-
and "message-actions-popover-container" in obj.parent.parent.IA2Attributes.get("class", "")
2637
):
2738
clsList.insert(0, PopOverMenu)

user_docs/en/changes.t2t

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ Note there are still known issues with Chrome and Edge. (#13254)
141141
- NVDA will announce dragging items on screen in places such as rearranging Windows 10 Start menu tiles and virtual desktops in Windows 11. (#12271, #14081)
142142
- In advanced settings, "Play a sound for logged errors" option is now correctly restored to its default value when pressing the "Restore defaults" button. (#14149)
143143
- NVDA can now select text using the ``NVDA+f10`` keyboard shortcut on Java applications. (#14163)
144+
- NVDA will no longer get stuck in a menu when arrowing up and down threaded conversations in Microsoft Teams. (#14355)
144145
-
145146

146147

0 commit comments

Comments
 (0)