[orca] Treat group elements with no children as divs rather than panels
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Treat group elements with no children as divs rather than panels
- Date: Thu, 24 May 2018 21:47:50 +0000 (UTC)
commit 129af395b7265ffecca24d3c338eb87f162ca5e1
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Thu May 24 14:47:09 2018 -0700
Treat group elements with no children as divs rather than panels
src/orca/scripts/web/script_utilities.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/scripts/web/script_utilities.py b/src/orca/scripts/web/script_utilities.py
index fcda254..a9ec6ee 100644
--- a/src/orca/scripts/web/script_utilities.py
+++ b/src/orca/scripts/web/script_utilities.py
@@ -1754,6 +1754,9 @@ class Utilities(script_utilities.Utilities):
if string and string != self.EMBEDDED_OBJECT_CHARACTER:
return True
+ if role == pyatspi.ROLE_PANEL and not childCount:
+ return True
+
rv = self._treatAsDiv.get(hash(obj))
if rv is not None:
return rv
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]