orca r3905 - in trunk: . src/orca/scripts/apps/Thunderbird src/orca/scripts/toolkits/Gecko



Author: joanied
Date: Tue May 20 19:00:23 2008
New Revision: 3905
URL: http://svn.gnome.org/viewvc/orca?rev=3905&view=rev

Log:
* src/orca/scripts/toolkits/Gecko/script.py:
  src/orca/scripts/apps/Thunderbird/script.py:
  Fix for bug #511561 - Orca should not impact the cursor position
  when replying to a message in thunderbird.



Modified:
   trunk/ChangeLog
   trunk/src/orca/scripts/apps/Thunderbird/script.py
   trunk/src/orca/scripts/toolkits/Gecko/script.py

Modified: trunk/src/orca/scripts/apps/Thunderbird/script.py
==============================================================================
--- trunk/src/orca/scripts/apps/Thunderbird/script.py	(original)
+++ trunk/src/orca/scripts/apps/Thunderbird/script.py	Tue May 20 19:00:23 2008
@@ -31,6 +31,7 @@
 import orca.orca as orca
 import orca.debug as debug
 import orca.default as default
+import orca.orca_state as orca_state
 import orca.speech as speech
 import orca.scripts.toolkits.Gecko as Gecko
 
@@ -212,3 +213,18 @@
 
         char = self.getCharacterAtOffset(obj, offset)
         return char == "\n"
+
+    def getDocumentFrame(self):
+        """Returns the document frame that holds the content being shown.
+        Overridden here because multiple open messages are not arranged
+        in tabs like they are in Firefox."""
+
+        obj = orca_state.locusOfFocus
+        while obj:
+            role = obj.getRole()
+            if role in [pyatspi.ROLE_DOCUMENT_FRAME, pyatspi.ROLE_EMBEDDED]:
+                return obj
+            else:
+                obj = obj.parent
+
+        return None

Modified: trunk/src/orca/scripts/toolkits/Gecko/script.py
==============================================================================
--- trunk/src/orca/scripts/toolkits/Gecko/script.py	(original)
+++ trunk/src/orca/scripts/toolkits/Gecko/script.py	Tue May 20 19:00:23 2008
@@ -114,7 +114,9 @@
              Script.goPreviousWord,
              Script.goNextLine,
              Script.goPreviousLine,
-             Script.expandComboBox]
+             Script.expandComboBox,
+             Script.goTopOfFile,
+             Script.goBottomOfFile]
 
         # _structuralNavigationFunctions are functions that represent
         # more complex navigation functions (e.g., moving by heading,



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