[orca/gnome-2-30] Fix for bgo#620156 - Caret-moved events not presented in OOo Writer 3.2's Hyperlink dialog



commit 9e420dfb6d92900a7ece4e5f2ec6bd2905ad987d
Author: Joanmarie Diggs <joanmarie diggs gmail com>
Date:   Fri Jun 18 10:38:12 2010 -0400

     Fix for bgo#620156 - Caret-moved events not presented in OOo Writer 3.2's Hyperlink dialog

 src/orca/scripts/apps/soffice/script.py |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/orca/scripts/apps/soffice/script.py b/src/orca/scripts/apps/soffice/script.py
index 8b5e946..bf93037 100644
--- a/src/orca/scripts/apps/soffice/script.py
+++ b/src/orca/scripts/apps/soffice/script.py
@@ -2330,11 +2330,14 @@ class Script(default.Script):
             # object:active-descendant-changed events which cause us
             # to set the locusOfFocus to the list item. If the user then
             # arrows within the text portion, we will not present it due
-            # to the event not being from the locusOfFocus.
+            # to the event not being from the locusOfFocus. A similar
+            # issue is present in the Target entry of the Hyperlink dialog
+            # for OOo 3.2.
             #
             if event.source.getRole() == pyatspi.ROLE_TEXT \
                and self.getAncestor(event.source,
-                                    [pyatspi.ROLE_TOOL_BAR],
+                                    [pyatspi.ROLE_TOOL_BAR,
+                                     pyatspi.ROLE_DIALOG],
                                     [pyatspi.ROLE_FRAME]):
                 orca.setLocusOfFocus(event, event.source, False)
             default.Script.onCaretMoved(self, event)



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