[orca] Do full update of braille if region contains embedded object characters
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Do full update of braille if region contains embedded object characters
- Date: Sat, 2 Dec 2017 19:28:40 +0000 (UTC)
commit 752d0443df8294a302ad8c765dc5ae4d8212701a
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Sat Dec 2 14:27:58 2017 -0500
Do full update of braille if region contains embedded object characters
src/orca/scripts/web/script.py | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/scripts/web/script.py b/src/orca/scripts/web/script.py
index df536aa..6e495df 100644
--- a/src/orca/scripts/web/script.py
+++ b/src/orca/scripts/web/script.py
@@ -845,6 +845,16 @@ class Script(default.Script):
self.displayContents(contents)
self.speakContents(contents, priorObj=priorObj)
+ def updateBrailleForNewCaretPosition(self, obj):
+ """Try to reposition the cursor without having to do a full update."""
+
+ text = self.utilities.queryNonEmptyText(obj)
+ if text and self.EMBEDDED_OBJECT_CHARACTER in text.getText(0, -1):
+ self.updateBraille(obj)
+ return
+
+ super().updateBrailleForNewCaretPosition(obj)
+
def updateBraille(self, obj, **args):
"""Updates the braille display to show the given object."""
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]