Commit e7f860470ff36d704adc84c7be06426f30c13454

Authored by Joanmarie Diggs
1 parent a85ce449

Fix regression resulting from presentation of all selected items

Showing 1 changed file with 9 additions and 0 deletions   Show diff stats
src/orca/script_utilities.py
... ... @@ -4982,6 +4982,15 @@ class Utilities:
4982 4982 if "Selection" not in interfaces:
4983 4983 return False
4984 4984  
  4985 + state = obj.getState()
  4986 + if state.contains(pyatspi.STATE_EXPANDABLE) \
  4987 + and not state.contains(pyatspi.STATE_EXPANDED):
  4988 + return False
  4989 +
  4990 + role = obj.getRole()
  4991 + if role in [pyatspi.ROLE_COMBO_BOX, pyatspi.ROLE_MENU]:
  4992 + return False
  4993 +
4985 4994 if self.selectedChildCount(obj) == obj.childCount:
4986 4995 return True
4987 4996  
... ...