Commit e1759e98 authored by Joanmarie Diggs's avatar Joanmarie Diggs

Always present the name of buttons, even if the parent has the same name

parent c1837c88
......@@ -217,9 +217,11 @@ class SpeechGenerator(speech_generator.SpeechGenerator):
return []
role = args.get('role', obj.getRole())
alwaysPresent = [pyatspi.ROLE_PUSH_BUTTON,
if obj.parent and and == \
and obj != orca_state.locusOfFocus and role != pyatspi.ROLE_IMAGE:
and obj != orca_state.locusOfFocus and role not in alwaysPresent:
return []
# TODO - JD: Once the formatting strings are vastly cleaned up
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment