[orca/gnome-3-4] Prevent Orca from double-presenting focused links with structural navigation in WebKitGtk lists
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca/gnome-3-4] Prevent Orca from double-presenting focused links with structural navigation in WebKitGtk lists
- Date: Sun, 8 Apr 2012 21:02:51 +0000 (UTC)
commit 01ebdb7f07dac9b9af0bb2fa443e628f39c47cc6
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Sun Apr 8 17:03:06 2012 -0400
Prevent Orca from double-presenting focused links with structural navigation in WebKitGtk lists
.../toolkits/WebKitGtk/structural_navigation.py | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/scripts/toolkits/WebKitGtk/structural_navigation.py b/src/orca/scripts/toolkits/WebKitGtk/structural_navigation.py
index c2840f4..d11d74f 100644
--- a/src/orca/scripts/toolkits/WebKitGtk/structural_navigation.py
+++ b/src/orca/scripts/toolkits/WebKitGtk/structural_navigation.py
@@ -83,6 +83,14 @@ class StructuralNavigation(structural_navigation.StructuralNavigation):
if characterOffset == 0:
child, offset = self._script.setCaretAtStart(obj)
+
+ if child and child.getRole() == pyatspi.ROLE_LIST_ITEM:
+ for c in child:
+ start, end = self._script.utilities.getHyperlinkRange(c)
+ if start == offset:
+ child = c
+ break
+
orca.setLocusOfFocus(None, child, False)
return
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]