[orca/gnome-3-12] Update the locusOfFocus when when caret moves in a focused object in Evince
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca/gnome-3-12] Update the locusOfFocus when when caret moves in a focused object in Evince
- Date: Sat, 26 Apr 2014 01:27:46 +0000 (UTC)
commit 21be977b212a133c4983b0afd6cfea47c06b04ca
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Fri Apr 25 21:26:51 2014 -0400
Update the locusOfFocus when when caret moves in a focused object in Evince
src/orca/scripts/apps/evince/script.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/scripts/apps/evince/script.py b/src/orca/scripts/apps/evince/script.py
index 708abd9..fc4936f 100644
--- a/src/orca/scripts/apps/evince/script.py
+++ b/src/orca/scripts/apps/evince/script.py
@@ -115,7 +115,7 @@ class Script(gtk.Script):
"""Callback for object:text-caret-moved accessibility events."""
obj = event.source
- if obj.getRole() == pyatspi.ROLE_PAGE:
+ if obj.getState().contains(pyatspi.STATE_FOCUSED):
orca.setLocusOfFocus(event, event.source, False)
gtk.Script.onCaretMoved(self, event)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]