[orca] Add ROLE_SPLIT_PANE to the heuristic identifying the tbird spellcheck window



commit ce3fc8e4be89f72bf86efcb922a3d94271c10571
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Thu Sep 10 19:46:03 2015 -0400

    Add ROLE_SPLIT_PANE to the heuristic identifying the tbird spellcheck window

 src/orca/scripts/apps/Thunderbird/spellcheck.py |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/orca/scripts/apps/Thunderbird/spellcheck.py b/src/orca/scripts/apps/Thunderbird/spellcheck.py
index 66b3b6f..a2946de 100644
--- a/src/orca/scripts/apps/Thunderbird/spellcheck.py
+++ b/src/orca/scripts/apps/Thunderbird/spellcheck.py
@@ -61,8 +61,9 @@ class SpellCheck(spellcheck.SpellCheck):
         if not (window and window.getRole() == pyatspi.ROLE_DIALOG):
             return False
 
-        isPageTabList = lambda x: x and x.getRole() == pyatspi.ROLE_PAGE_TAB_LIST
-        if pyatspi.findDescendant(window, isPageTabList):
+        roles = [pyatspi.ROLE_PAGE_TAB_LIST, pyatspi.ROLE_SPLIT_PANE]
+        isNonSpellCheckChild = lambda x: x and x.getRole() in roles
+        if pyatspi.findDescendant(window, isNonSpellCheckChild):
             return False
 
         return True


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