[orca] Also sanity check table rows when determining useless empty elements



commit 049f02c1ceb08d1184e56fbc5cacaa764461afe4
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Thu May 16 14:28:43 2019 +0200

    Also sanity check table rows when determining useless empty elements
    
    If they are not interacative and have no presentable information, might as
    well skip over them.

 src/orca/scripts/web/script_utilities.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/orca/scripts/web/script_utilities.py b/src/orca/scripts/web/script_utilities.py
index e4cd74617..f6948a05d 100644
--- a/src/orca/scripts/web/script_utilities.py
+++ b/src/orca/scripts/web/script_utilities.py
@@ -3186,7 +3186,7 @@ class Utilities(script_utilities.Utilities):
             debug.println(debug.LEVEL_INFO, msg, True)
             return False
 
-        if role not in [pyatspi.ROLE_SECTION, pyatspi.ROLE_STATIC]:
+        if role not in [pyatspi.ROLE_SECTION, pyatspi.ROLE_STATIC, pyatspi.ROLE_TABLE_ROW]:
             rv = False
         elif state.contains(pyatspi.STATE_FOCUSABLE) or state.contains(pyatspi.STATE_FOCUSED):
             rv = False


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