[orca] Check that line has changed before re-presenting it in content-editable objects
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Check that line has changed before re-presenting it in content-editable objects
- Date: Sat, 2 Dec 2017 20:02:07 +0000 (UTC)
commit 7c49710224c15befe3db6329a0a415e29bdb5df0
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Sat Dec 2 15:00:13 2017 -0500
Check that line has changed before re-presenting it in content-editable objects
src/orca/scripts/web/script.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/scripts/web/script.py b/src/orca/scripts/web/script.py
index 6e495df..25a77fe 100644
--- a/src/orca/scripts/web/script.py
+++ b/src/orca/scripts/web/script.py
@@ -1137,7 +1137,10 @@ class Script(default.Script):
self.utilities.setCaretContext(newFocus, caretOffset)
self.updateBraille(newFocus)
- if self.utilities.isContentEditableWithEmbeddedObjects(newFocus):
+
+ oldContext = self.utilities.lastContext(oldFocus)
+ if self.utilities.isContentEditableWithEmbeddedObjects(newFocus) \
+ and not self.utilities.contextsAreOnSameLine(oldContext, (newFocus, caretOffset)):
msg = "WEB: New focus %s content editable. Generating line contents." % newFocus
debug.println(debug.LEVEL_INFO, msg, True)
contents = self.utilities.getLineContentsAtOffset(newFocus, caretOffset)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]