[orca/gnome-3-34] Always present the name of buttons, even if the parent has the same name
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca/gnome-3-34] Always present the name of buttons, even if the parent has the same name
- Date: Tue, 5 Nov 2019 20:07:01 +0000 (UTC)
commit 868d2d63dbec85f164134dd33c32ad4c5e66effb
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Tue Nov 5 15:05:29 2019 -0500
Always present the name of buttons, even if the parent has the same name
src/orca/scripts/web/speech_generator.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/orca/scripts/web/speech_generator.py b/src/orca/scripts/web/speech_generator.py
index 5bb9c3f60..acaa1969a 100644
--- a/src/orca/scripts/web/speech_generator.py
+++ b/src/orca/scripts/web/speech_generator.py
@@ -195,9 +195,11 @@ class SpeechGenerator(speech_generator.SpeechGenerator):
return []
role = args.get('role', obj.getRole())
+ alwaysPresent = [pyatspi.ROLE_PUSH_BUTTON,
+ pyatspi.ROLE_IMAGE]
if obj.parent and obj.name and obj.name == obj.parent.name \
- 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]