[orca] Add list item marker to the things which cannot have the caret context



commit 891b1c47bb60fc59a44ae896fff7ec314adee1cb
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Fri Jun 7 12:59:50 2019 -0400

    Add list item marker to the things which cannot have the caret context

 src/orca/script_utilities.py             | 3 +++
 src/orca/scripts/web/script_utilities.py | 4 ++++
 2 files changed, 7 insertions(+)
---
diff --git a/src/orca/script_utilities.py b/src/orca/script_utilities.py
index b829629de..b019831bf 100644
--- a/src/orca/script_utilities.py
+++ b/src/orca/script_utilities.py
@@ -1960,6 +1960,9 @@ class Utilities:
     def isStaticTextLeaf(self, obj, checkSiblings=True):
         return False
 
+    def isListItemMarker(self, obj):
+        return False
+
     def getOnScreenObjects(self, root, extents=None):
         if not self.isOnScreen(root, extents):
             return []
diff --git a/src/orca/scripts/web/script_utilities.py b/src/orca/scripts/web/script_utilities.py
index 8560df28d..a9b0923b7 100644
--- a/src/orca/scripts/web/script_utilities.py
+++ b/src/orca/scripts/web/script_utilities.py
@@ -3819,6 +3819,10 @@ class Utilities(script_utilities.Utilities):
             msg = "WEB: Static text leaf cannot have caret context %s" % obj
             debug.println(debug.LEVEL_INFO, msg, True)
             return False
+        if self.isListItemMarker(obj):
+            msg = "WEB: List item marker cannot have caret context %s" % obj
+            debug.println(debug.LEVEL_INFO, msg, True)
+            return False
 
         return True
 


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