[orca] Fall back on displayed text if a list item has no name
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Fall back on displayed text if a list item has no name
- Date: Tue, 24 Nov 2015 04:25:19 +0000 (UTC)
commit 11b69b9525f9aa920d4172726ca24d34d4799e28
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Mon Nov 23 23:23:05 2015 -0500
Fall back on displayed text if a list item has no name
src/orca/formatting.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/formatting.py b/src/orca/formatting.py
index 5bc71c1..c40d0b4 100644
--- a/src/orca/formatting.py
+++ b/src/orca/formatting.py
@@ -226,7 +226,7 @@ formatting = {
pyatspi.ROLE_LIST_ITEM: {
'focused': 'expandableState',
'unfocused': '(labelOrName or (displayedText + allTextSelection)) + pause + expandableState +
pause + positionInList + pause + listBoxItemWidgets',
- 'basicWhereAmI': 'label + roleName + pause + name + pause + positionInList + pause +
expandableState + (nodeLevel or nestingLevel) + pause'
+ 'basicWhereAmI': 'label + roleName + pause + (name or displayedText) + pause + positionInList +
pause + expandableState + (nodeLevel or nestingLevel) + pause'
},
pyatspi.ROLE_MATH: {
'unfocused': 'math',
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]