[orca/gnome-3-34] Advance caret context to first non-list-item-marker position
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca/gnome-3-34] Advance caret context to first non-list-item-marker position
- Date: Fri, 18 Oct 2019 21:32:38 +0000 (UTC)
commit 2d7143347248735b7b940059427c3ba8a5cf2758
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Fri Oct 18 17:31:03 2019 -0400
Advance caret context to first non-list-item-marker position
src/orca/scripts/web/script_utilities.py | 7 +++++++
1 file changed, 7 insertions(+)
---
diff --git a/src/orca/scripts/web/script_utilities.py b/src/orca/scripts/web/script_utilities.py
index a50832134..a886b89d5 100644
--- a/src/orca/scripts/web/script_utilities.py
+++ b/src/orca/scripts/web/script_utilities.py
@@ -4157,6 +4157,13 @@ class Utilities(script_utilities.Utilities):
debug.println(debug.LEVEL_INFO, msg, True)
return self.findFirstCaretContext(obj[0], 0)
+ if self.isListItemMarker(obj):
+ nextObj, nextOffset = obj, offset
+ while nextObj and self.isListItemMarker(nextObj):
+ nextObj, nextOffset = self.nextContext(nextObj, nextOffset)
+ if nextObj:
+ obj, offset = nextObj, nextOffset
+
text = self.queryNonEmptyText(obj)
if not text:
if self._advanceCaretInEmptyObject(obj) \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]