[orca] Don't speak the role of selected panels
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Don't speak the role of selected panels
- Date: Mon, 26 Mar 2018 19:17:36 +0000 (UTC)
commit 615180b367c0a182d2d4321f5daf85e6b785112f
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Mon Mar 26 15:16:49 2018 -0400
Don't speak the role of selected panels
src/orca/speech_generator.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/speech_generator.py b/src/orca/speech_generator.py
index 34aad8d..92a1a4e 100644
--- a/src/orca/speech_generator.py
+++ b/src/orca/speech_generator.py
@@ -373,6 +373,9 @@ class SpeechGenerator(generator.Generator):
if role == pyatspi.ROLE_MENU and parentRole == pyatspi.ROLE_COMBO_BOX:
return self._generateRoleName(obj.parent)
+ if role == pyatspi.ROLE_PANEL and obj.getState().contains(pyatspi.STATE_SELECTED):
+ return []
+
# egg-list-box, e.g. privacy panel in gnome-control-center
if parentRole == pyatspi.ROLE_LIST_BOX:
doNotPresent.append(obj.getRole())
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]