Commit 830a18b4 authored by Joanmarie Diggs's avatar Joanmarie Diggs

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.
parent 2f98effe
......@@ -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 []
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment