[orca] Don't present unselectedCell for text objects



commit 31a46ab58643c612eb6c9a67a1fa78510481ebc2
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Thu Sep 13 11:50:22 2018 -0400

    Don't present unselectedCell for text objects

 src/orca/speech_generator.py | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/src/orca/speech_generator.py b/src/orca/speech_generator.py
index 2b65d8a76..346383210 100644
--- a/src/orca/speech_generator.py
+++ b/src/orca/speech_generator.py
@@ -836,6 +836,9 @@ class SpeechGenerator(generator.Generator):
         if state.contains(pyatspi.STATE_SELECTED):
             return []
 
+        if obj.getRole() == pyatspi.ROLE_TEXT:
+            return []
+
         parentRole = obj.parent.getRole()
         if parentRole in [pyatspi.ROLE_TREE_TABLE, pyatspi.ROLE_TABLE]:
             lastKey, mods = self._script.utilities.lastKeyAndModifiers()


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]