[orca] Only treat menus as layout only if they are combobox children



commit bec044f78c13b24a68159b39bdf0f6d119a85b38
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Wed Mar 22 07:47:54 2017 -0400

    Only treat menus as layout only if they are combobox children

 src/orca/script_utilities.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/orca/script_utilities.py b/src/orca/script_utilities.py
index 3642ccd..7229448 100644
--- a/src/orca/script_utilities.py
+++ b/src/orca/script_utilities.py
@@ -1224,8 +1224,8 @@ class Utilities:
             layoutOnly = False
         elif role in topLevelRoles:
             layoutOnly = False
-        elif role == pyatspi.ROLE_MENU and parentRole == pyatspi.ROLE_COMBO_BOX:
-            layoutOnly = True
+        elif role == pyatspi.ROLE_MENU:
+            layoutOnly = parentRole == pyatspi.ROLE_COMBO_BOX
         elif role == pyatspi.ROLE_LIST:
             layoutOnly = False
         elif role == pyatspi.ROLE_FORM:


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