[orca/gnome-3-16] Check for Zombie accessibles in Writer's onCaretMoved()
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca/gnome-3-16] Check for Zombie accessibles in Writer's onCaretMoved()
- Date: Sun, 8 Mar 2015 19:08:43 +0000 (UTC)
commit cea7a0aa08fd9ca6d452391b28883740920c3bf3
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]