[orca] Explicitly handle line generation in content editable
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Explicitly handle line generation in content editable
- Date: Sat, 2 Dec 2017 16:42:08 +0000 (UTC)
commit 2f23ec1ea15f33b9735118fa078f29a0485fc7fa
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Sat Dec 2 11:41:05 2017 -0500
Explicitly handle line generation in content editable
src/orca/scripts/web/script.py | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/orca/scripts/web/script.py b/src/orca/scripts/web/script.py
index 899011b..9f29a82 100644
--- a/src/orca/scripts/web/script.py
+++ b/src/orca/scripts/web/script.py
@@ -1121,8 +1121,12 @@ class Script(default.Script):
self.utilities.setCaretContext(newFocus, caretOffset)
self.updateBraille(newFocus)
-
- if self.utilities.isAnchor(newFocus):
+ if self.utilities.isContentEditableWithEmbeddedObjects(newFocus):
+ msg = "WEB: New focus %s content editable. Generating line contents." % newFocus
+ debug.println(debug.LEVEL_INFO, msg, True)
+ contents = self.utilities.getLineContentsAtOffset(newFocus, caretOffset)
+ utterances = self.speechGenerator.generateContents(contents)
+ elif self.utilities.isAnchor(newFocus):
msg = "WEB: New focus %s is anchor. Generating line contents." % newFocus
debug.println(debug.LEVEL_INFO, msg, True)
contents = self.utilities.getLineContentsAtOffset(newFocus, 0)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]