[orca/gnome-3-14] Check for Zombie accessibles in Writer's onCaretMoved()



commit 740c5b7639e8862e9146b4dc9f9ef72e76e74329
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Sun Mar 8 15:14:47 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 |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/scripts/apps/soffice/script.py b/src/orca/scripts/apps/soffice/script.py
index fec14b8..fb88c8f 100644
--- a/src/orca/scripts/apps/soffice/script.py
+++ b/src/orca/scripts/apps/soffice/script.py
@@ -909,6 +909,11 @@ class Script(default.Script):
             default.Script.onCaretMoved(self, event)
             return
 
+        try:
+            role = orca_state.locusOfFocus.getRole()
+        except:
+            orca.setLocusOfFocus(event, event.source)
+
         if orca_state.locusOfFocus.getRole() == pyatspi.ROLE_TABLE_CELL:
             default.Script.onCaretMoved(self, event)
             return


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