[orca] Fix regression resulting from presentation of all selected items
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Fix regression resulting from presentation of all selected items
- Date: Thu, 2 Aug 2018 14:49:26 +0000 (UTC)
commit e7f860470ff36d704adc84c7be06426f30c13454
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Thu Aug 2 10:48:17 2018 -0400
Fix regression resulting from presentation of all selected items
src/orca/script_utilities.py | 9 +++++++++
1 file changed, 9 insertions(+)
---
diff --git a/src/orca/script_utilities.py b/src/orca/script_utilities.py
index 61d47f193..546496471 100644
--- a/src/orca/script_utilities.py
+++ b/src/orca/script_utilities.py
@@ -4982,6 +4982,15 @@ class Utilities:
if "Selection" not in interfaces:
return False
+ state = obj.getState()
+ if state.contains(pyatspi.STATE_EXPANDABLE) \
+ and not state.contains(pyatspi.STATE_EXPANDED):
+ return False
+
+ role = obj.getRole()
+ if role in [pyatspi.ROLE_COMBO_BOX, pyatspi.ROLE_MENU]:
+ return False
+
if self.selectedChildCount(obj) == obj.childCount:
return True
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]