[orca] Change behavior of navigation to container edges
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Change behavior of navigation to container edges
- Date: Fri, 5 Apr 2019 18:09:28 +0000 (UTC)
commit 83bfb035d32bd34084b5c476d967a85adcb35938
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Fri Apr 5 14:07:58 2019 -0400
Change behavior of navigation to container edges
Present the current line rather than the current object so we don't
re-present earlier content from ancestors.
src/orca/structural_navigation.py | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/src/orca/structural_navigation.py b/src/orca/structural_navigation.py
index 62e00a2e1..9f143f615 100644
--- a/src/orca/structural_navigation.py
+++ b/src/orca/structural_navigation.py
@@ -914,12 +914,10 @@ class StructuralNavigation:
if not newObj:
document = self._script.utilities.getDocumentForObject(obj)
newObj = self._script.utilities.getNextObjectInDocument(obj, document)
- elif pyatspi.findAncestor(container, lambda x: x == newObj):
- newObj, newOffset = self._script.utilities.nextContext(newObj, newOffset)
newContainer = self.getContainerForObject(newObj)
if newObj and newContainer != container:
- structuralNavigationObject.present(newObj)
+ structuralNavigationObject.present(newObj, newOffset)
return
if obj == container:
@@ -3327,4 +3325,4 @@ class StructuralNavigation:
obj, characterOffset = self._getCaretPosition(obj)
self._setCaretPosition(obj, characterOffset)
- self._presentObject(obj, characterOffset, True)
+ self._presentLine(obj, characterOffset)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]