[orca] Eliminate double-presentation of section content



commit 2729256be86a458c6cfb965b2931215c74955473
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Thu May 16 16:19:12 2019 +0200

    Eliminate double-presentation of section content

 src/orca/formatting.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/orca/formatting.py b/src/orca/formatting.py
index 4ebaa0dc9..fb19114af 100644
--- a/src/orca/formatting.py
+++ b/src/orca/formatting.py
@@ -398,8 +398,8 @@ formatting = {
             'basicWhereAmI': 'labelOrName + roleName + value + percentage + ' + MNEMONIC + ' + accelerator + 
required'
             },
         pyatspi.ROLE_SECTION: {
-            'focused': 'labelOrName + currentLineText + allTextSelection + roleName',
-            'unfocused': 'labelOrName + currentLineText + allTextSelection + roleName + ' + MNEMONIC,
+            'focused': '(labelOrName or (currentLineText + allTextSelection)) + roleName',
+            'unfocused': '(labelOrName or (currentLineText + allTextSelection)) + roleName + ' + MNEMONIC,
             },
         pyatspi.ROLE_SLIDER: {
             'focused': 'value',


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]