[orca] Additional tweak for bug #645290 - Orca does not present links in Yelp 3 when those links are made u



commit 5f6faa7c460bdbb1c66ad6dc80e780ceec70c46b
Author: Joanmarie Diggs <joanmarie diggs gmail com>
Date:   Mon Mar 21 03:08:57 2011 -0400

    Additional tweak for bug #645290 - Orca does not present links in Yelp 3 when those links are made up of multiple objects
    
    This keeps us from double-speaking the links when the Arrow keys are used instead of Tab.

 src/orca/scripts/toolkits/WebKitGtk/script.py |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/scripts/toolkits/WebKitGtk/script.py b/src/orca/scripts/toolkits/WebKitGtk/script.py
index 6b9141c..2742a78 100644
--- a/src/orca/scripts/toolkits/WebKitGtk/script.py
+++ b/src/orca/scripts/toolkits/WebKitGtk/script.py
@@ -130,6 +130,13 @@ class Script(default.Script):
         if lastKey in ['Tab', 'ISO_Left_Tab']:
             return
 
+        if lastKey == 'Down' \
+           and orca_state.locusOfFocus == event.source.parent \
+           and event.source.getIndexInParent() == 0 \
+           and orca_state.locusOfFocus.getRole() == pyatspi.ROLE_LINK:
+            self.updateBraille(event.source)
+            return
+
         if self.utilities.isWebKitGtk(orca_state.locusOfFocus):
             orca.setLocusOfFocus(event, event.source, False)
 



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