[orca] Chromium: Don't treat static text leaf node as real active descendant
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Chromium: Don't treat static text leaf node as real active descendant
- Date: Tue, 27 Aug 2019 18:59:29 +0000 (UTC)
commit 32c6227aad5202ab4894516e6830833b84058227
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Tue Aug 27 14:58:16 2019 -0400
Chromium: Don't treat static text leaf node as real active descendant
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 f69ef2834..033023908 100644
--- a/src/orca/script_utilities.py
+++ b/src/orca/script_utilities.py
@@ -2109,7 +2109,7 @@ class Utilities:
return obj
hasContent = [x for x in obj if self.displayedText(x).strip()]
- if len(hasContent) == 1:
+ if len(hasContent) == 1 and not self.isStaticTextLeaf(hasContent[0]):
return hasContent[0]
return obj
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]