Skip to content

Commit

Permalink
QuickNav next menu command: adding more IA2 roles (#16670)
Browse files Browse the repository at this point in the history
On some websites QuickNav command jump to next menu doesn't work. For example in Jupyter:
jupyter.org/try-jupyter/notebooks/?path=notebooks/Intro.ipynb

Description of user facing changes
QuickNav next menu command now works with Jupyter.

Description of development approach
Added one more IA2 role to search for in next menu QuickNav command.
  • Loading branch information
mltony authored Jun 17, 2024
1 parent 65e6620 commit dd924f0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion source/virtualBuffers/gecko_ia2.py
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,10 @@ def _searchableAttribsForNodeType(self,nodeType):
]
elif nodeType == "menuItem":
attrs = [
{"IAccessible::role": [oleacc.ROLE_SYSTEM_BUTTONMENU]}
{"IAccessible::role": [
oleacc.ROLE_SYSTEM_BUTTONMENU,
oleacc.ROLE_SYSTEM_MENUITEM,
]}
]
elif nodeType == "toggleButton":
attrs = [
Expand Down

0 comments on commit dd924f0

Please sign in to comment.