[orca] Don't process static text leaf nodes when presenting text selection



commit fb7109ace115acf0f1059c968c95b97c84c051eb
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Fri Oct 4 11:17:31 2019 -0400

    Don't process static text leaf nodes when presenting text selection

 src/orca/scripts/web/script_utilities.py | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/orca/scripts/web/script_utilities.py b/src/orca/scripts/web/script_utilities.py
index 1eda759c0..a50832134 100644
--- a/src/orca/scripts/web/script_utilities.py
+++ b/src/orca/scripts/web/script_utilities.py
@@ -1767,6 +1767,8 @@ class Utilities(script_utilities.Utilities):
 
         descendants = sorted(set(oldSubtree).union(newSubtree), key=functools.cmp_to_key(_cmp))
         for descendant in descendants:
+            if self.isStaticTextLeaf(descendant):
+                continue
             if descendant not in (oldStart, oldEnd, start, end) \
                and pyatspi.findAncestor(descendant, lambda x: x in descendants):
                 super().updateCachedTextSelection(descendant)


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