[orca] Chat: Fix false positive with autocompleted text event



commit c9d8a8ae279a1858d07f53566ba0d78bbf924567
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Mon Mar 16 15:33:43 2020 -0400

    Chat: Fix false positive with autocompleted text event

 src/orca/chat.py | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/src/orca/chat.py b/src/orca/chat.py
index 518140119..b5ceba691 100644
--- a/src/orca/chat.py
+++ b/src/orca/chat.py
@@ -917,6 +917,9 @@ class Chat:
         - event: the accessible event being examined
         """
 
+        if event.source.getRole() != pyatspi.ROLE_TEXT:
+            return False
+
         lastKey, mods = self._script.utilities.lastKeyAndModifiers()
         if lastKey == "Tab" and event.any_data and event.any_data != "\t":
             return True


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