[orca] Include the static role when looking for unrelated labels
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Include the static role when looking for unrelated labels
- Date: Tue, 3 Jul 2018 12:50:01 +0000 (UTC)
commit c5ff021f7063a0f00dcb9439779b64e65b80529b
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Tue Jul 3 08:49:27 2018 -0400
Include the static role when looking for unrelated labels
src/orca/script_utilities.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/orca/script_utilities.py b/src/orca/script_utilities.py
index 15763ead1..7f4621d05 100644
--- a/src/orca/script_utilities.py
+++ b/src/orca/script_utilities.py
@@ -2283,7 +2283,7 @@ class Utilities:
if self._script.spellcheck and self._script.spellcheck.isCheckWindow(root):
return []
- hasRole = lambda x: x and x.getRole() == pyatspi.ROLE_LABEL
+ hasRole = lambda x: x and x.getRole() in [pyatspi.ROLE_LABEL, pyatspi.ROLE_STATIC]
try:
allLabels = pyatspi.findAllDescendants(root, hasRole)
except:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]