[orca] Check that the focusable context object is not the document after page load



commit def8abee95ef3b131b7ecdf804bfcf0d4765a71a
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Tue Oct 13 09:10:08 2015 -0400

    Check that the focusable context object is not the document after page load
    
    On simpler pages, the body can be the first context object. And we still want
    to do a SayAll if that is the user's preference.

 src/orca/scripts/web/script.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/scripts/web/script.py b/src/orca/scripts/web/script.py
index 4bcaad1..55d987b 100644
--- a/src/orca/scripts/web/script.py
+++ b/src/orca/scripts/web/script.py
@@ -1078,7 +1078,7 @@ class Script(default.Script):
             return True
 
         self.updateBraille(obj)
-        if state.contains(pyatspi.STATE_FOCUSABLE):
+        if state.contains(pyatspi.STATE_FOCUSABLE) and not self.utilities.isDocument(obj):
             msg = "WEB: Not doing SayAll due to focusable context obj %s" % obj
             debug.println(debug.LEVEL_INFO, msg)
             speech.speak(self.speechGenerator.generateSpeech(obj))


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