[orca] Braille: Only pan to offset when there's not a non-zero targetCursorCell
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Braille: Only pan to offset when there's not a non-zero targetCursorCell
- Date: Wed, 29 Apr 2020 03:17:47 +0000 (UTC)
commit 30de00ff1aa4d633b2e23922337e4de28c90553d
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Tue Apr 28 23:13:31 2020 -0400
Braille: Only pan to offset when there's not a non-zero targetCursorCell
updateBrailleReview() was unconditionally calling panToOffset(). We don't
want this panning to override the location set by panBrailleLeft() or
panBrailleRight().
src/orca/scripts/default.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/orca/scripts/default.py b/src/orca/scripts/default.py
index 7add12596..dcc63fbab 100644
--- a/src/orca/scripts/default.py
+++ b/src/orca/scripts/default.py
@@ -3459,7 +3459,7 @@ class Script(script.Script):
self.addBrailleRegionsToLine(regions, line)
braille.setLines([line])
self.setBrailleFocus(regionWithFocus, False)
- if regionWithFocus:
+ if regionWithFocus and not targetCursorCell:
offset = regionWithFocus.brailleOffset + regionWithFocus.cursorOffset
msg = "DEFAULT: Update to %i in %s" % (offset, regionWithFocus)
debug.println(debug.LEVEL_INFO, msg, True)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]