[orca] Only ignore document frame focus claims if we're in document content



commit a1040653db8340c3403fd1e5a55a124a08fa7acc
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Thu Nov 14 14:54:16 2013 -0500

    Only ignore document frame focus claims if we're in document content

 src/orca/scripts/toolkits/Gecko/script.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/scripts/toolkits/Gecko/script.py b/src/orca/scripts/toolkits/Gecko/script.py
index dd28724..1770667 100644
--- a/src/orca/scripts/toolkits/Gecko/script.py
+++ b/src/orca/scripts/toolkits/Gecko/script.py
@@ -1324,7 +1324,7 @@ class Script(default.Script):
         # As the caret moves into a non-focusable element, Gecko emits the
         # signal on the first focusable element in the ancestry.
         rolesToIgnore = pyatspi.ROLE_DOCUMENT_FRAME, pyatspi.ROLE_PANEL
-        if role in rolesToIgnore:
+        if role in rolesToIgnore and self.inDocumentContent():
             return
 
         default.Script.onFocusedChanged(self, event)


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