[orca] Add explicit formatting strings for tree role
- From: Joanmarie Diggs <joanied src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [orca] Add explicit formatting strings for tree role
 
- Date: Tue, 17 Nov 2020 11:43:25 +0000 (UTC)
 
commit 9bf4bd87bf5df2dc2ef320cbe05beebee18315c5
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Tue Nov 17 12:42:37 2020 +0100
    Add explicit formatting strings for tree role
 src/orca/formatting.py | 7 +++++++
 1 file changed, 7 insertions(+)
---
diff --git a/src/orca/formatting.py b/src/orca/formatting.py
index 5679a8c9b..da0137684 100644
--- a/src/orca/formatting.py
+++ b/src/orca/formatting.py
@@ -519,6 +519,10 @@ formatting = {
             'unfocused': 'roleName + labelAndName',
             'basicWhereAmI': 'roleName + labelAndName'
             },
+        pyatspi.ROLE_TREE: {
+            'focused': 'labelAndName + roleName',
+            'unfocused': 'labelAndName + roleName',
+            },
         pyatspi.ROLE_TREE_ITEM: {
             'focused': 'expandableState',
             'unfocused': '(labelOrName or displayedText) + pause + expandableState + pause + positionInList',
@@ -821,6 +825,9 @@ formatting = {
         pyatspi.ROLE_TOOL_BAR: {
             'unfocused': '[Component(obj, asString(labelOrName + roleName))]',
             },
+        pyatspi.ROLE_TREE: {
+            'unfocused': '[Component(obj, asString(labelOrName + roleName))]',
+            },
         pyatspi.ROLE_TREE_ITEM: {
             'unfocused': '((substring and ' + BRAILLE_TEXT + ')\
                           or ([Component(obj, asString(labelOrName + expandableState))]\
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]