[orca] More work on what we treat as whole objects for mouse review
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] More work on what we treat as whole objects for mouse review
- Date: Thu, 5 Jul 2018 17:46:09 +0000 (UTC)
commit 240aa4c78a697e8cee3fed2bee6fa03f3c0f9297
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Thu Jul 5 13:45:23 2018 -0400
More work on what we treat as whole objects for mouse review
src/orca/mouse_review.py | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/orca/mouse_review.py b/src/orca/mouse_review.py
index 7f89d9ce4..274682450 100644
--- a/src/orca/mouse_review.py
+++ b/src/orca/mouse_review.py
@@ -136,10 +136,14 @@ class _ItemContext:
if "Text" not in interfaces:
return True
- if self._obj.getRole() == pyatspi.ROLE_LABEL:
+ roles = [pyatspi.ROLE_ENTRY,
+ pyatspi.ROLE_LABEL,
+ pyatspi.ROLE_PASSWORD_TEXT]
+
+ if self._obj.getRole() in roles:
return True
- if self._obj.name:
+ if self._obj.name and not "EditableText" in pyatspi.listInterfaces(self._obj):
return True
return False
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]