[orca] Web: Don't present labelOrName for document frame during caret navigation
- From: Joanmarie Diggs <joanied src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [orca] Web: Don't present labelOrName for document frame during caret navigation
 
- Date: Tue, 22 Dec 2020 15:50:50 +0000 (UTC)
 
commit 830a18b4433f1ae772ce76a3d9d8d2452f797f40
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Tue Dec 22 16:48:42 2020 +0100
    Web: Don't present labelOrName for document frame during caret navigation
    
    On some pages, the content we're navigating in is contained in the
    document itself (as opposed to a child element). In those cases, we
    don't want to speak the document title when the caret first returns
    to the body as a consequence of using caret navigation.
 src/orca/scripts/web/speech_generator.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/orca/scripts/web/speech_generator.py b/src/orca/scripts/web/speech_generator.py
index 2b5c242b8..eb366cde5 100644
--- a/src/orca/scripts/web/speech_generator.py
+++ b/src/orca/scripts/web/speech_generator.py
@@ -324,7 +324,8 @@ class SpeechGenerator(speech_generator.SpeechGenerator):
         if priorObj and priorObj in self._script.utilities.labelsForObject(obj):
             return []
 
-        if self._script.utilities.isContentEditableWithEmbeddedObjects(obj):
+        if self._script.utilities.isContentEditableWithEmbeddedObjects(obj) \
+           or self._script.utilities.isDocument(obj):
             lastKey, mods = self._script.utilities.lastKeyAndModifiers()
             if lastKey in ["Home", "End", "Up", "Down", "Left", "Right", "Page_Up", "Page_Down"]:
                 return []
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]