[orca] Check for Zombie accessibles in Writer's onCaretMoved()



commit b1e33e5340d4a0d14b6a82884f86254912e19768
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Sun Mar 8 15:04:56 2015 -0400

    Check for Zombie accessibles in Writer's onCaretMoved()
    
    If the user selects and deletes the current paragraph, the locusOfFocus
    goes defunct and we stop presenting caret-moved events.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=745845

 src/orca/scripts/apps/soffice/script.py |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/scripts/apps/soffice/script.py b/src/orca/scripts/apps/soffice/script.py
index 52d3b7c..4f994c3 100644
--- a/src/orca/scripts/apps/soffice/script.py
+++ b/src/orca/scripts/apps/soffice/script.py
@@ -908,7 +908,9 @@ class Script(default.Script):
         if self.utilities.isCellBeingEdited(event.source):
             orca.setLocusOfFocus(event, event.source.parent, False)
 
-        if not orca_state.locusOfFocus:
+        if not orca_state.locusOfFocus \
+           or self.utilities.isZombie(orca_state.locusOfFocus):
+            orca.setLocusOfFocus(event, event.source)
             default.Script.onCaretMoved(self, event)
             return
 


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