[orca] Work around Unity Panel Service descriptions being silly.
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Work around Unity Panel Service descriptions being silly.
- Date: Mon, 25 Apr 2016 13:49:44 +0000 (UTC)
commit d33ca9f558e94e468fd8946cf1f890bf7916f4ec
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Mon Apr 25 09:46:17 2016 -0400
Work around Unity Panel Service descriptions being silly.
For some reason, the labels which serve as Unity Panel Service menubar
items expose an accessible description of the text + underscore symbol
used to create the mnemonic. We're presenting both the displayed text
and the description because we don't know the latter is not meant for
end users.
src/orca/generator.py | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/generator.py b/src/orca/generator.py
index 374c0cd..344fd6c 100644
--- a/src/orca/generator.py
+++ b/src/orca/generator.py
@@ -384,6 +384,12 @@ class Generator:
if role == pyatspi.ROLE_TERMINAL:
return []
+ # Unity Panel Service menubar items are labels which claim focus and
+ # have an accessible description of the text + underscore symbol used
+ # to create the mnemonic. We'll work around that here for now.
+ if role == pyatspi.ROLE_LABEL:
+ return []
+
result = []
if obj.description:
label = self._script.utilities.displayedLabel(obj) or ""
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]