[orca] Chromium: Manually add listitem marker to text in list of items dialog
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Chromium: Manually add listitem marker to text in list of items dialog
- Date: Fri, 7 Jun 2019 22:06:47 +0000 (UTC)
commit 5bf984c389a56adbda060f5383e9ad454823f0dd
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Fri Jun 7 18:06:07 2019 -0400
Chromium: Manually add listitem marker to text in list of items dialog
src/orca/structural_navigation.py | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/src/orca/structural_navigation.py b/src/orca/structural_navigation.py
index b23f5cfc1..ea33d7834 100644
--- a/src/orca/structural_navigation.py
+++ b/src/orca/structural_navigation.py
@@ -1302,6 +1302,10 @@ class StructuralNavigation:
if not text and obj.getRole() == pyatspi.ROLE_LIST:
children = [x for x in obj if x.getRole() == pyatspi.ROLE_LIST_ITEM]
text = " ".join(list(map(self._getText, children)))
+ if obj.getRole() == pyatspi.ROLE_LIST_ITEM:
+ marker = self._script.utilities.getListItemMarkerText(obj)
+ if text and marker and not text.startswith(marker):
+ text = "%s %s" % (marker.strip(), text)
return text
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]