[orca] Prevent double-speaking of static text in alerts and other containers
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Prevent double-speaking of static text in alerts and other containers
- Date: Tue, 7 Apr 2020 16:21:04 +0000 (UTC)
commit 203b27f2d3a631ccbf0de813fda98d6ec4335612
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Tue Apr 7 12:19:28 2020 -0400
Prevent double-speaking of static text in alerts and other containers
If the text string is a substring of the root's name, treat it as
a duplicate.
src/orca/script_utilities.py | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/src/orca/script_utilities.py b/src/orca/script_utilities.py
index 056496cc5..2453bd637 100644
--- a/src/orca/script_utilities.py
+++ b/src/orca/script_utilities.py
@@ -2488,6 +2488,8 @@ class Utilities:
continue
if len(name.split()) < minimumWords:
continue
+ if rootName.find(name) >= 0:
+ continue
d[name] = label
labels = list(d.values())
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]