[orca] 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] Advance caret context to first non-list-item-marker position
- Date: Fri, 18 Oct 2019 21:31:52 +0000 (UTC)
commit 7e901a171d643557552461c8ac6bc450c17abce7
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 1c4c2d69e..085277f83 100644
--- a/src/orca/scripts/web/script_utilities.py
+++ b/src/orca/scripts/web/script_utilities.py
@@ -4176,6 +4176,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]