[orca] Present listbox details as part of presenting the first focused child



commit b018ed81ee100c2151825e08368016095f1c1a58
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Fri Jan 17 08:35:09 2014 -0500

    Present listbox details as part of presenting the first focused child

 src/orca/formatting.py       |    2 +-
 src/orca/script_utilities.py |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/orca/formatting.py b/src/orca/formatting.py
index 837bbfc..d72b0bd 100644
--- a/src/orca/formatting.py
+++ b/src/orca/formatting.py
@@ -184,7 +184,7 @@ formatting = {
             'basicWhereAmI': 'linkInfo + siteDescription + fileSize + ' + MNEMONIC
             },
         pyatspi.ROLE_LIST: {
-            'focused': 'focusedItem',
+            'focused': 'labelOrName + multiselectableState + numberOfChildren',
             'unfocused': 'labelOrName + focusedItem + multiselectableState + numberOfChildren'
             },
         pyatspi.ROLE_LIST_ITEM: {
diff --git a/src/orca/script_utilities.py b/src/orca/script_utilities.py
index 4dbfeb0..6c27a5f 100644
--- a/src/orca/script_utilities.py
+++ b/src/orca/script_utilities.py
@@ -796,7 +796,7 @@ class Utilities:
             layoutOnly = False
         elif role in [pyatspi.ROLE_DIALOG, pyatspi.ROLE_WINDOW]:
             layoutOnly = False
-        elif self.isTableRow(obj):
+        elif role == pyatspi.ROLE_LIST or self.isTableRow(obj):
             state = obj.getState()
             layoutOnly = not (state.contains(pyatspi.STATE_FOCUSABLE) \
                               or state.contains(pyatspi.STATE_SELECTABLE))


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