[orca] Don't treat events as being from replicants if locusOfFocus isn't dead



commit 1abd20220e8c68fb32b0b4563f56d9152fbbc9f8
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Thu Feb 20 13:49:00 2020 +0100

    Don't treat events as being from replicants if locusOfFocus isn't dead

 src/orca/scripts/web/script_utilities.py | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/src/orca/scripts/web/script_utilities.py b/src/orca/scripts/web/script_utilities.py
index 35cb9b538..06034e0b9 100644
--- a/src/orca/scripts/web/script_utilities.py
+++ b/src/orca/scripts/web/script_utilities.py
@@ -4300,6 +4300,9 @@ class Utilities(script_utilities.Utilities):
         if self.isDead(replicant):
             return False
 
+        if not self.isDead(orca_state.locusOfFocus):
+            return False
+
         path, role, name = self.getCaretContextPathRoleAndName()
         if path != pyatspi.getPath(replicant):
             return False


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