[orca] Fix _generateName() to prefer the name (duh)
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Fix _generateName() to prefer the name (duh)
- Date: Wed, 29 Jan 2020 16:13:12 +0000 (UTC)
commit a1170e5ba46314b5608fd815c8e01453695b3b8e
Author: Joanmarie Diggs <joanmarie diggs gmail com>
Date: Wed Jan 29 11:09:27 2020 -0500
Fix _generateName() to prefer the name (duh)
Long, long ago the decision was made to prefer the displayedText over the
accessible name. To be honest, I'm not sure why. I've subsequently not
changed that for fear of breaking something unexpected. But bugs keep
coming up because of this old decision. We'll fix them based on reports
before this is included in stable.
src/orca/generator.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/orca/generator.py b/src/orca/generator.py
index ca2cfa257..0bb8310f0 100644
--- a/src/orca/generator.py
+++ b/src/orca/generator.py
@@ -303,7 +303,7 @@ class Generator:
"""
result = []
self._script.pointOfReference['usedDescriptionForName'] = False
- name = self._script.utilities.displayedText(obj)
+ name = obj.name or self._script.utilities.displayedText(obj)
if obj.getRole() == pyatspi.ROLE_COMBO_BOX:
children = self._script.utilities.selectedChildren(obj)
if not children:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]