Skip to content

Commit

Permalink
Don't speak clickable for menu items, tabs or sliders in browse mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
jcsteh committed Sep 15, 2011
1 parent 52c868a commit 47c7a02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/speech.py
Expand Up @@ -830,7 +830,7 @@ def getControlFieldSpeech(attrs,ancestorAttrs,fieldType,formatConfig=None,extraD
level=attrs.get('level',None)

#Remove the clickable state from controls that are clearly clickable according to their role
if role in (controlTypes.ROLE_LINK,controlTypes.ROLE_BUTTON,controlTypes.ROLE_CHECKBOX,controlTypes.ROLE_RADIOBUTTON,controlTypes.ROLE_TOGGLEBUTTON):
if role in (controlTypes.ROLE_LINK,controlTypes.ROLE_BUTTON,controlTypes.ROLE_CHECKBOX,controlTypes.ROLE_RADIOBUTTON,controlTypes.ROLE_TOGGLEBUTTON,controlTypes.ROLE_MENUITEM,controlTypes.ROLE_TAB,controlTypes.ROLE_SLIDER):
states=states.copy()
states.discard(controlTypes.STATE_CLICKABLE)

Expand Down

0 comments on commit 47c7a02

Please sign in to comment.