[orca/gnome-3-36] Chromium: Prevent double-speaking of ARIA combobox value



commit 948ce86a4afda3a644d5e0befb8962ebe2de0905
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Tue Apr 7 14:50:41 2020 -0400

    Chromium: Prevent double-speaking of ARIA combobox value
    
    We should not be taking static-text leaf nodes into account when
    looking for the selected item in a combo box. That value will get
    presented as part of the displayed text.

 src/orca/generator.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/orca/generator.py b/src/orca/generator.py
index 75569cfaf..014906aed 100644
--- a/src/orca/generator.py
+++ b/src/orca/generator.py
@@ -312,7 +312,8 @@ class Generator:
                 except:
                     pass
             try:
-                children = children or [child for child in obj]
+                include = lambda x: not self._script.utilities.isStaticTextLeaf(x)
+                children = children or [child for child in obj if include(child)]
             except:
                 pass
             names = map(self._script.utilities.displayedText, children)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]